updating the sample for the changes in the thrift API