various stuff to init game