added support for http in proxy