semi fix to undo/redo. gonna go break some stuff, brb.