added HISTMAXBKP and clear old backups