thrift service handler