fixes parsing of urls (added appending a host name)