persisting batches