added support for CURL proxy