remove unnecessary dependence on thrift