app reinit moved to server init