add search endpoint for client