 
         lastDestroyEvent = null
         lastCaptureEvent = null
+
+        impossibleEvents = {}
 
         next = ->
 


            # flip to own faction
            
            if item.markup.TEXT1.plain is ' captured '
                records.push
                    time:   item.time

                
                if lastDestroyEvent?
                    if lastDestroyEvent.markup.PORTAL1.team isnt item.markup.PORTAL1.team and (lastCaptureEvent is null or lastCaptureEvent.time > lastDestroyEvent.time)
                        if lastDestroyEvent.markup.PLAYER1.team isnt lastDestroyEvent.markup.PORTAL1.team and not impossibleEvents[lastDestroyEvent._id]?
                            records.push
                                time:    lastDestroyEvent.time
                                player:  lastDestroyEvent.markup.PLAYER1
