OPINION OF THE COURT
This appeal presents the narrow issue of whether a criminal defendant, after entering a knowing and voluntary guilty plea, is entitled to a dismissal of the indictment because of the government’s violation of Article IV(e) of the Interstate Agreement on Detainers (hereinafter “IAD”), 18 U.S.C. App. § 2 (1977 Supp.). 1 Since we hold that *166 he is not, we affirm the district court’s denial of defendant’s motion to dismiss the indictment.
Defendant Palmer was indicted by a federal grand jury on April 28, 1977, on two counts of forging and cashing a United States Treasury check as prohibited by 18 U.S.C. § 495. On May 25, 1977, defendant was sentenced on an unrelated state charge in the Court of Common Pleas of Erie County, Pennsylvania. On the same day he began serving that sentence in the Erie County Jail. On June 2, 1977, the federal government obtained custody of defendant by writ of habeas corpus ad prosequendum, issued pursuant to 28 U.S.C. § 2241(c)(5), and arraigned him in the United States District Court for the Western District of Pennsylvania. The defendant was then returned to the Erie County Jail. On June 22, 1977, defendant was transferred from the Erie County Jail to the Western Pennsylvania State Diagnostic and Correctional Institute at Pittsburgh, Pennsylvania (“Western Penn”). 2 On August 1, 1977, the federal government again took custody of defendant by writ of habeas corpus ad pro-sequendum. On that day, following a colloquy pursuant to Fed.R.Crim.P. 11, the adequacy of which is not in dispute, defendant pleaded guilty to both counts in the federal indictment. Thereafter he was immediately returned to Western Penn.
On August 14, 1977, defendant filed a motion to dismiss the indictment on the ground that his transfers from state custody to federal custody and then back to state custody violated Article IV(e) of the IAD. On August 26, 1977, the district court denied the motion and sentenced defendant to two years of imprisonment imposed concurrently with the state sentence. Defendant then filed this direct appeal.
The parties do not dispute that a violation of the IAD in fact took place. If defendant had raised this contention prior to pleading guilty, the indictment would have been dismissed with prejudice.
United States v. Sorrell,
Defendant pleaded guilty on August 1, 1977. At that time, the applicability of Article IV(e) to his situation was still in doubt because Sorrell and Thompson had not yet been decided. Defendant apparently made a rational and voluntary decision to accept the benefits of pleading guilty. 3 Although he moved to dismiss the indictment before sentencing, he was not willing to surrender these benefits by seeking to withdraw his plea and “taking his chances” on the outcome of his IAD motion. By pleading guilty in this way, defendant waived his right to have the Article IV(e) claim considered.
Defendant contends the court lacked subject matter jurisdiction because the IAD provides the indictment “shall not be of any further force or effect” and entitles a de
*167
fendant to dismissal “with prejudice” when Article IV(e) is violated. The defendant is correct that errors and defenses which
go
to the jurisdiction of the court to accept a guilty plea may be raised even after the plea has been entered.
See
e.
g., Blackledge v. Perry,
However, the nature of defendant’s rights under the IAD disposes of this contention. The Supreme Court has consistently held that even deprivation of constitutional rights occurring prior to the entry of a guilty plea may not be asserted in subsequent proceedings.
Tollett
v.
Henderson,
In our view, whether a claim is “jurisdictional” or not depends on the source and importance of the right asserted as well as its impact. We therefore hold that the violation of a statutory provision such as Article IV(e) is not sufficiently important to deny a court jurisdiction to entertain a guilty plea where the defendant fails to raise the issue in a timely manner.
Strawderman
v.
United States,
We note that the purposes of the IAD are to implement a defendant’s right to a speedy trial and to avoid excessive interference with a prisoner’s rehabilitation in the state prison system.
United States
v.
Sorrell, supra,
at 229;
United States ex rel. Esola v. Groomes,
Notes
. IAD Article IV(e) provides:
If trial is not had on any indictment, information, or complaint contemplated hereby prior to the prisoner’s being returned to the original place of imprisonment pursuant to Article V(e) hereof, such indictment, information, or complaint shall not be of any further force or effect, and the court shall enter an order dismissing the same with prejudice:
. The government has conceded that the defendant was not held in federal custody at the Western Penn because that institution is not designated as a holding place for federal prisoners awaiting trial in the United States District Court for the Western District of Pennsylvania.
. At oral argument, defendant’s counsel represented to the court that he was aware of the provisions of Article IV(e) at the time defendant pleaded guilty, but was unsure whether they applied in defendant’s situation. While the record is bare of evidence of any plea bargain in defendant’s case, we assume that defendant’s counsel obtained some concessions from the government in exchange for the plea. He and the defendant apparently deemed these concessions acceptable in view of the uncertainty surrounding the IV(e) claim. We note in this regard that the government made no sentencing recommendation and that the sentence imposed was concurrent with the state sentence.
. Defendant contends that
Enright v. United States,
. It is presumably for this reason that this court noted in Sorrell, supra, at 231, that “there seems little justification for retroactive application of the statutory construction ultimately adopted, through collateral attack, where the defendant-prisoner has not requested a speedy trial prior to the trial.” See also Edwards v. United States, supra, (a claim based on a violation of IAD is not cognizable under 28 U.S.C. § 2255).
