fix access to env var