i think this needs an `if varname in os.environ:`