add puts key to add_batches for debugging