move world out of state to make world render caching work