init the server end