fix setting env vars