use dagre for rendering.... seems to work quite well, with a ton of boilerplate copied at least