create a prototype AsyncHandler