vendored the thrift library