add register for checking fsm_running. Issue #24