added an assert in the history export