move some stuff to before the preInit, where it makes more simpler