modified ybs-integrity-check