add htpp and https proxy support