fixed(?) file output explosion at end of run