update baseurl handling.