utility to generate reports