add history save file and increase history size to 1,000,000