use line buffersize to control buffering