fixes to the search api