how to make it work with proxy