adding search endpoint