updates server code