wip - modify editing system to work as a plugin