step2 : basic functions for handling nodetags and nodegroups - still highly volatile