generate the thrift file