moved wildcard matching in search out to utilities