add clean funcrion, change thrift start\stop