update for difference between #samples and sample-index
fix logic of newevents with negative time-out to still check for new events at least once