implement logic to handle max runtime checkpoints