batched write