async optimize working