patch for thrift