'MAXFORECASTS' introduced
refactoring