pass the env correctly