update registration with server and client