moved preloading to start state