oops, only run before revert when its a reversion