more validation in parser