updates server and client