add method to event context