fixing baseurl call