add condition for proxy setting