write add, load and save for HistoryManager