redo how security events are stored a bit