add thrift defs