add a treatment to write the stat in a file