figuring out base urls