get environments right