more work on batching writes