hero client code