pass env correctly