fix unfreeze
fix unfreeze/freeze
better isdirty detection
undo
better undo
better undo2