cleanup line buffer handling