change accepted event type so that it is not case sensitive