removing trailing / from baseurl