pass the batch to checkout as an argument