async and search example