A scheme for forecasting severe space weather