removed unused code
file to record events in modules and splitting/merging of events