intersections mostly working, plus dumping to JSON for debug