new fix for proxied hosts