update server & client