maintain reset_sys_modes function