add a fileIndex to a event object