fixed environment variable access