outline of class to deal with rollbacks