used enums a bit more in parser.cc