adding output parsing, first addition: line buffer
removed dbg output