fixed reverse proxy support