added nested groups functionality for node hierarchy parents