add some async operations, fix async deadlock problem.