update client context