re-separate groupSpec and panelSpec