s/apply_update/set_state