lines 34-48 added backupFolder, lines 145-147 get last entry without array