moved state to knossos-global