add shingle server implemented by c and thrift