some fixes for revert