first draft of the server