modify code under thrift 0.8.0