added proxy rewrite