fork THRIFT cookbook and adapt to work