writing report to disk