updated AsyncState example