enum forward declaration problem
adapt to cparser enum changes