commit all before revert