add local history and diff