add support for reverse proxies