fixing environment variables