adds skeleton for client code. hasn't been tested. probably doesn't work.