logic for missing/bad fields