updated draft for batch writes.