add function to set env vars