pass in env correctly