check for env var