better support for reverse proxy