added set env var functionality