resolve base URI issue