add client code