adding some helpers for history analysis