[Origin] wow have tree string and undo working flawlessly, somewhat hacky but very robust all things considered