this condition is not always met, so global.reportFolder should have a init value.