the netecho.cpp modified