use the same buffer size for reading and writing