added some async sample code