new client code