add support for proxies