resolve base urls