modify the server code