update thrift example