parsing bad stdout