improved parsing of request.host
improved parsing of request.host more