hook for env vars