creating defgroup macros for packs