add a thrift file