added several macros to deal with grouping proceedings. wip.