update client and server