updated env var access