add support for pre/post group callbacks