support of enum typedef