added per-file and per-sd statistics