proxy code for dev server