added support for http/https proxies