move check for :revert to cli