set proxy correctly