moved stage dependencies into the StageManager class