implemented more async api in lua