added emergencybraeke statement within state_stop again