const event = name.slice(2) as keyof Events;