resolve base uri