changed to EventType.getByName(name)