change method for acquiring env vars