move location of env so its before command