semi working version of interactive report generation