do some batch writes