adds json report, more generic report writer