don't let state be null as it breaks nwschat for the moment