check for message of parse error simplified, because it can change