parsing reply, write report to csv file