added thrift-mode