updated handling of wrong entries in parser.add_entries