fix environments not working from cli