updated search to have server code