building logic to handle checkpoint comparisons