add code to scan for invalid claims
fix syntax trouble with name
fix minor syntax bug