find ids by prefix