fixing a bug with error handling and filters on new report func