check for proxy before configuring it