server init works in main.cpp