write report to file