starting to flesh out graph-drawing stuff