main: set zero for bufferLength on startup