add save to local_state after setting config_ok