update, client and server