more simpler thrift api