get proxies from the server, and added support for proxy changing