added a mini profiler
added a way to stop the graph visit or skip certain children