support buffers in batch + use valueStream