updated to use current version of thrift library