fix node_name detection