added code from wstearns that puts in https_proxy support