thrift handler and server implementation