handle multiple matches in lookups