made write batch sizes settable