updated m5nr tool to return results by source more effiently