updates client code