renamed 'group' to 'reset' for the concept of 'slicing' stateful streams