remove logging
correct source dumping for nodes with no children.