update thrift define