adding proxy and rewrite urls