add method to setup proxy