extend history size and don't save duplicates