fix a bug in status sequence
Fix promote bug
fix exit from the promote script