modify server code