upgrade script converting old events to typed comments