started work on the search endpoint