build the server