implements more robust automatic node name creation