various refinements to search_names