cleanup: use MetaPos for undo/redo system