fix prob with linefeeds on csv export & allow reports to have normal json output