add more thrift code