basic file validation for parser