handle environmental variable