convert SysMode to state_table