added some client code