setup proxy is now a function