attach patch for http/https proxy support