added support for http proxy