refactor interface to editor, some serialisation prototyping