main now uses NoteGroup