Thousands of nonprofits in danger of losing tax-exempt status