update the server and code