class for reverse proxy