add codes to make the server start.