added check if a node has router and address