moved env var into env.global