much improved purging (per file)