add flexenum definition (and fix spelling)