modify srv_server code