saved updated env and history