add base thrift