first draft of report generation logic [#78269656]