add search to client api