allow passing environment variables and current working directroy