fix for https proxy usage