make revert hooks optional