updated search endpoint