check for persistent_undo