modify for new version of http-proxy