increase buffer in read and write