first real effort at managing document connections, for use on the mindmap