working on client code -- broken