get the env first... order matters