fix for reverse proxy (take 2)