cleaned up front-end run-script command a bit using the FSM