changing the API, adding more search criteria