update communications between client and server