do we need a notion of a 'last event' in a codec?