added a category to handle reverting managed objects. NOT TESTED