added ability to not draw parents or children of query terms