writing stats to files; skipping entries with attrib errors