switch to using the request protocol instead of the environment variable