restore setup_stage method