fleshed out the search route
sent res on client