renamed getintenum to getenumlist and exported it