revert log mecanism