change root file every 1M events