added proxy support code with comment out