updated search script