Better way of enabling autoProxy