basic api in core.thrift