preprocessing of events based on repo