adding client code