add daemon cpp
refine datanode