auto set up env for rescue shell