moved after server initialize code