revise codes in comm dir to adapt multiple end point net address