guard the os.environ setting