added atomic batches