fix proxy support