added support for ssl proxies