handle env variables