apply environment variables