minor fixes in fetching secondary url