made baseurl adapt the current scheme