save undo-tree state (and better defaults)