rolled out kernel_state_flags
rolled out kernel_state_flags