don't you mean s/trait/enum/g above?