change thrift interface more simpler