introduce tsave_first, tsave_period, fix backuping at end of run