add support for http and https proxies