fixing up the async search