undo some advances on main for code checkpoint