use thrift new api