handle reference tracks correctly for background subtraction and randomized events