loop with the async module