add debug information
add example of dynamic grouping