some refinements to search