OPINION
This case comes to us on interlocutory appeal. Danny Mislenkovy and Shoreland Metals, Inc. ("Shoreland") appeal the trial court's denial of their motion to dismiss the complaint of Accurate Metal Detin-ning, Inc. and Neil B. Berg (collectively, "Accurate Metal"). Mislenkov and Shore-land raise one issue, which we restate as whether the trial court erred when it denied their motion to dismiss. We affirm.
The relevant facts follow. Mislenkov is the developer and owner of a patented process for removing tin from tin-coated metals. Accurate Metal engages in the business of removing tin from copper, a process known as "detinning." Prior to June 1997, Mislenkov had worked for Accurate Metal for approximately eighteen months. On or about June 1, 1997, the employment relationship between Mislen-kov and Accurate Metal was terminated. On June 13, 1997, Mislenkov and Berg, who was acting as president of Accurate Metal, signed an employment agreement. The agreement contained an arbitration clause that provided, in relevant part, that "[alny controversy or claim arising out of or relating to this Agreement shall be settled by arbitration...." Record, p. 31. It is unclear whether Mislenkovy actually worked for Accurate Metal under the June 18, 1997, employment agreement.
Accurate Metal subsequently filed suit against Mislenkov and Shoreland, asserting that while Mislenkovy had been employed at Accurate Metal, and prior to termination of his employment on or about June 1, 1997, he "devoted a substantial portion of his time and efforts ... to purloining [Accurate Metal's] technology and customers, and to the establishment ... of his own separate and distinct competing business, ... [namely] Shoreland Metals, Inc." Record, pp. 10-11. Mislenkov and Shoreland responded by filing a motion to dismiss pursuant to Ind. Trial Rule 12(B)(1), asserting that the trial court lacked subject matter jurisdiction over Accurate Metal's claims because Mislenkov and Accurate Metal had agreed in the June 13, 1997, agreement to submit all employment-related claims to arbitration. The trial court denied Mislenkovy and Shoreland's motion to dismiss, holding that "the actions complained of do not fall within the purview of the arbitration clause." Record, p. 64. The trial court subsequently certified its ruling on the arbitration issue for interlocutory appeal.
*289
When ruling on a motion to dismiss for lack of subject matter jurisdiction, the trial court may weigh evidence and resolve factual disputes. Walters v. Modern Aluminum,
Here, Mislenkov and Shoreland assert that the trial court lacked subject matter jurisdiction over Accurate Metal's claims because the alleged harm occurred while Mislenkov was working for Accurate Metal, and because Accurate Metal had agreed to submit all claims arising out of Mislenkov's employment to arbitration.
A party seeking to compel arbitration must satisfy a two-pronged burden of proof. First, the party must demonstrate the existence of an enforceable agreement to arbitrate the dispute. Wilson Fertilizer & Grain, Inc. v. ADM Milling Co.,
Turning to the first prong of the analysis, there is no dispute that the employment agreement between Mislen-kov and Accurate Metal, including the arbitration clause, is enforceable as to those two parties. Shoreland, however, was not a party to the employment agreement. Generally, only those who are parties to a contract or those in privity with a party have the right to enforce the contract. Indiana Gaming Co. v. Blevins,
Turning to the second prong of the analysis, we must determine whether Accurate Metal's claims against Mislenkov are the type of claim that the parties agreed to arbitrate. Wilson Fertilizer & Grain, Inc.,
In this case, Accurate Metal's complaint asserts that, prior to Mislenkov's termination on or about June 1, 1997, he "devoted a substantial portion of his time and efforts during said employment to ... purloining [Accurate Metal's] technology and customers, and to the establishment ... of his own separate and distinct competing business, [namely] Shoreland Metals, Inc." Record, pp. 10-11. Thus, Accurate Metal is accusing Mislenkov of stealing its trade secrets throughout the course of his employment. However, Mislenkov and Aceu-rate Metal did not sign the employment agreement on which Mislenkov relies until June 13, 1997, which was after Mislenkov had been terminated. Thus, the crucial question is whether the agreement governs prior wrongdoing by Mislenkov. The employment agreement provides, in relevant part:
1. RELEASE. Any prior agreements and provisions within the agreements between [Accurate Metal] and [Mislenkov] are terminated at this date.... Both parties are released from any and all of the responsibilities and duties under the prior agreements. The "Employment Agreement and Release" shall be the sole contract which may be enforced against the parties....
#o eof shock
9. ARBITRATION CLAUSE. Any controversy or claim arising out of or relating to this Agreement shall be settled by arbitration in Valparaiso, Indiana in accordance with the rules of the American Arbitration Association and judgment upon the award rendered by the arbitrators may be entered in court having jurisdiction thereof.
Record, pp. 30-31.
Thus, the arbitration provision provides that the parties must arbitrate disputes arising out of or relating to the agreement, not to the parties' employment relationship in general. By its plain language, the agreement invalidates all prior employment contracts between Accurate Metal and Mislenkov and provides that it
*291
is "the sole contract which may be enforced against the parties," but that does not demonstrate that it applies retroactively. Record, p. 80. We are bound to resolve doubts in favor of arbitration, but Accurate Metal's claims of pre-agreement wrongdoing do not reasonably fit within the specific language the parties used in the agreement. Cf. St. John Sanitary Dist.,
For the foregoing reasons, we affirm the judgment of the trial court.
Affirmed.
Notes
. Mislenkov and Shoreland contend that Accurate Metal is challenging the applicability of the employment agreement to Shoreland for the first time on appeal, and has therefore waived the issue. We disagree. The issue of whether the employment agreement applies to Shoreland is determinative of the trial court's subject matter jurisdiction over Accurate Metal's claims against Shoreland, and challenges to subject matter jurisdiction cannot be waived. See Schafer v. Sellersburg Town Council,
. It appears from the record that Mislenkov and Accuraie Metal had signed a prior employment agreement that also contained an arbitration clause. However, that agreement has not been included in the record, and no argument that it applies has been made, so we cannot consider whether Accurate Melal's claims would be subject to arbitration pursuant to that agreement's terms.
