initial working prototype of basic rollback.