change event types into a strongly-typed enumeration