added thrift client & server, service implementation)