the function of server almost complete, but still unrunnable