environment variable checking