setting correct env variables for http