modidy server code