Multi thread porting

Function storeBadEvents removed because it asks for the get and book of a ME in step1.
not sure I understand this. if the code after else is never entered, please remove it