using async to fix coinbase script