handle node groups properly