first iteration of the server