fix to calling env vars