rearrangements in gnode.cpp and utilsGnode.cpp