new implementation of diskbased history