thrift api for kbs