prepare for history rebuild