how to build a proxy