fixed deprecation warning environment variable