Cleaning up and fixing a problem in multiDiscoverer (when dealing with atts and refs)