all numInitStages() returns NUM_INIT_STAGES
replaced numInitStages()-1 to INITSTAGE_LAST
else if (stage == INITSTAGE_xyz)
merged same stages, reordered