bug fix switch to environment variables http_proxy and https_proxy

staged pull do not merge this yet.