parse checkpoint.