parse json closer to how d3 expects it. improve text display, update queries