probably should just set a ref to graph in environment hash rather than thread it thru - fix if you fork and feel like