OPINION OF THE COURT
In this bankruptcy appeal, Debtor-Appellant Manuel Kaplan contests an order allowing First Options of Chicago’s proof of claim. Kaplan argues that we should reverse the order allowing the claim because First Options materially breached the contracts under which the claim arose. Concluding that First Options did not breach the parties’ contracts, the bankruptcy and district courts allowed the claim. For the reasons stated below, we reverse and remand.
*2309 I.
From 1981 to 1989, Manuel Kaplan was a professional options trader on the Philadelphia Stock Exchange. In 1984, Kaplan began trading through MK Investments, Inc. (“MKI”), which was a market maker on the exchange. 1 Kaplan became MKI’s sole shareholder in 1986.
To facilitate its trading business, MKI entered into various contracts with First Options. Under these contracts, First Options agreed to act as MKI’s clearing firm, providing a variety of support functions, such as generating account statements, keeping records, investing short-term funds, providing office space and margin, 2 and guaranteeing MKI’s obligations to the exchange. Since First Options assumed the role of MKI’s guarantor, the parties’ contracts granted First Options certain powers over MKI’s trading account.
While the business relationship between MKI and First Options was initially profitable, MKI’s account with First Options suffered approximately $12 million in losses during the stock market crash of 1987. These losses left MKI’s account with a deficit of approximately $2 million. As MKI’s guarantor, First Options was liable for this deficit. First Options therefore attempted to minimize its exposure by liquidating the remaining positions in MKI’s trading account. This liquidation created a dispute between the parties as Kaplan asserted that First Options’ actions in liquidating the account needlessly compounded MKI’s losses, rather than alleviating its deficit.
After the 1987 market crash, MKI and First Options negotiated a Workout Agreement under which the parties settled their dispute and arranged for MKI to resume its trading activities. This Workout Agreement consisted of four documents: (1) a Letter Agreement executed by Kaplan, his wife (Carol Kaplan), First Options, and MKI; (2) a Guaranty executed only by MKI; (3) a Subordinated Loan Agreement executed by First Options and MKI; and (4) a Subordinated Promissory Note executed by MKI. 3 Under the terms of these documents, MKI agreed to repay more than $5 million to cover its trading deficits and various other amounts that First Options had advanced. MKI also agreed to deposit $900,000 in new capital into its trading account, to turn over various other assets to First Options, and to clear its future trading activity exclusively through First Options. The Letter Agreement also provided that the Kaplans would file income tax returns to obtain any individual tax refunds due from 1987 and remit those refunds to First Options. 4 In turn, First Options allowed MKI to roll over its debt and agreed once again to provide the clearing services and leverage necessary for MKI’s trading business.
In April 1988, MKI resumed trading pursuant to the terms of the Workout Agreement. Through successful trading, MKI increased the value of its account to approximately $2 million. However, before the market opened on January 16, 1989, Coastal Corporation unexpectedly announced a takeover bid for Texas Eastern Corporation (“TET”), a stock in which MKI had a significant short position. 5 This posi *2310 tion exposed MKI to potential losses if the price of TET stock increased. 6 Unfortunately for MKI, this potential was realized as Coastal’s bid caused TET’s price to jump from $30 to $45 before the opening of trading on January 16. At the $45 price, MKI would have lost more than $1.5 million if it had purchased enough TET shares to cover its short position. However, because MKI was not required to cover its short position immediately, it had an opportunity to evaluate the risk of further market fluctuations. Any reduction in the price of TET in the days following Coastal’s bid would have allowed MKI to regain its lost value, while any further increase would have inflicted additional losses.
The parties disagree over whether Kaplan took appropriate steps to analyze and alleviate the risk that the TET position posed to MKI’s account. However, the parties agree that MKI was unable to reduce its short position significantly on January 16 despite actively trading in TET options and stock. First Options contends that the parties agreed to meet on the morning of January 17 to reassess MKI’s position. Kaplan does not recall such an agreement and did not attend the meeting. When Kaplan failed to arrive at the meeting, First Options instructed one of MKI’s traders to purchase the 150-170,000 shares of TET stock or stock options necessary to cover MKI’s short position. While this action eliminated any further risk from the TET position, it also locked in MKI’s existing losses and deprived MKI of the benefit of any future decline in TET’s price.
First Options personnel confronted Kaplan when he arrived at the exchange later on the morning of January 17. The bankruptcy court noted that this exchange “went badly.” Following this conversation, First Options ordered Kaplan to leave the premises and took control of MKI’s trading account. First Options disconnected MKI’s phone lines, removed MKI’s traders from the floor of the exchange, canceled MKI’s outstanding orders and instructed brokers not to take orders placed by MKI.
MKI’s account still had a net value of approximately $500,000 when First Options assumed control on January 17. However, the account’s value declined as First Options liquidated the remaining assets over the following months. By the time First Options finished liquidating the account, it had a final deficit of approximately $65,000.
Kaplan filed a bankruptcy petition under Chapter 11 in February 1993. He subsequently converted his petition to Chapter 7. First Options asserted a proof of claim to obtain the income tax refunds mentioned in the parties’ Letter Agreement. In response, Kaplan asserted several counterclaims and defenses against First Options. Kaplan argued that First Options’ actions in seizing and liquidating MKI’s accounts breached the Workout Agreement and the implied obligations of good faith and fair dealing. To remedy these breaches, Kaplan sought damages and a ruling excusing his obligation to surrender his tax refund to First Options. The bankruptcy court rejected Kaplan’s claims and defenses, holding that the parties’ agreements explicitly authorized First Options’ actions in seizing and liquidating MKI’s account. The district court affirmed.
II.
As an initial matter, First Options asserts that we must consider whether Kap-lan has standing to assert his counterclaims. First Options argues that Kaplan’s counterclaims are improper because he seeks to recover personally for damages suffered by MKI. Kaplan responds that First Options owed direct contractual duties to him individually and that his claims are thus for personal rather than derivative injuries. The bankruptcy court did not address the standing issue, and the district court declined to address it because the court concluded that Kaplan’s counterclaims failed on the merits. See In re Kaplan, Civ. Action No. 95-95-6040 at 9 (E.D.Pa. Apr. 21, 1997).
The derivative injury rule holds that a shareholder (even a shareholder in a close
*2311
ly-held eoiporation) may not sue for personal injuries that result directly from injuries to the corporation.
See Singletary v. Continental Ill. Nat’l Bank & Trust Co.,
The derivative injury rule, however, will not bar Kaplan’s claims if he seeks to recover for injuries that were inflicted on him individually rather than on the corporation.
See Kroblin Refrigerated Xpress, Inc. v. Pitterich,
A review of the parties’ contracts and their positions in this litigation makes it clear that First Options gave Kaplan some commitment as consideration for his promise to remit his tax refund. 8 But, while it is clear that Kaplan received some consideration for his promise to give up his tax refund, the parties disagree about exactly what commitment Kaplan received. An argument could be made that Kaplan received only a release from personal liability for MKI’s pre-workout debts. Two provisions of the Workout Agreement specifically mention Kaplan in his individual capacity. In one of these provisions, Kaplan promises to give First Options his tax refund. In the other, First Options releases Kaplan from any personal liability for MKI’s preworkout deficits. 9 Since these are the only provisions in the agreements that mention Kaplan in his individual capacity, First Options apparently concludes that Kaplan received only the release as consideration for his commitment to surrender his tax refund. If we were to accept this argument, we would hold that Kaplan has standing to enforce the release, but does not have standing to assert claims for a breach of First Options’ promise to provide services to MKI or to assert the breach of those prom *2312 ises as a defense to First Options’ proof of claim. 10
We conclude, however, that the plain text of the parties’ agreements refutes this interpretation. The parties concur that they executed the Workout Agreement for two purposes: to resolve their dispute over MKI’s pre-workout debts and to enable MKI to get back into business. The bankruptcy court noted that the parties intended for the Workout Agreement to enable MKI to resume trading,
see In re Kaplan,
Bankr.No. 93-10625DAS at 4,
Under this interpretation, MKI is an intended third-party beneficiary to Kaplan’s commitment, and First Options’ corresponding promises to provide services to MKI flow both to MKI and to Kaplan individually.
See generally Olson v. Etheridge,
*2313 III.
First Options raises another bar to our consideration of the merits of Kaplan’s claims. First Options asserts that Kaplan’s claims are barred by res judicata and collateral estoppel because he controlled MKI when First Options and MKI arbitrated similar claims before the Philadelphia Exchange. First Options raised this argument before the bankruptcy court in a motion to dismiss. The bankruptcy court
12
noted that under Pennsylvania’s eontrol-of-litigation rule, a party may be bound by the results of litigation even if that party, although not a litigant or in privity with a litigant, was “virtually substituted for the actual party in the management and control of the litigation.”
In re Kaplan,
Bankr.No. 93-10625DAS at 18-20,
We need not decide whether the bankruptcy court correctly interpreted Pennsylvania law 14 because we hold that the preclusive effect of MKI’s prior litigation is governed by federal, not Pennsylvania, law.
To understand the choice-of-law issue that this case presents, we must examine how the parties came to this stage of their litigation. In their previous appeal, the parties petitioned the federal district court to confirm or vacate the Philadelphia Exchange’s arbitration award. Since the Federal Arbitration Act does not independently confer subject matter jurisdiction on the federal courts,
see, e.g., General Atomic Co. v. United Nuclear Corp.,
In contrast to the parties’ first ease, this litigation was brought under the federal bankruptcy laws, and therefore the district court had jurisdiction under 28 U.S.C. § 158(a). Accordingly, this case presents the question of which law governs the preclusive effect of a prior federal court judgment rendered under diversity jurisdiction on a subsequent case arising under the bankruptcy laws. The Supreme Court addressed that question in
Heiser v. Woodruff,
Although several federal courts have held that a shareholder is bound by his corporation’s prior litigation if he participated substantially in the suit,
see, e.g., In re Teltronics Servs., Inc.,
It is cardinal rule that “Arbitration is a matter of contract, and parties are bound by arbitration awards only if they agreed to arbitrate a matter.”
E.g., Teamsters Local Union No. 764 v. J.H. Merritt and Co.,
First Options, however, now asks us to hold that, although it has already been conclusively adjudicated that Kaplan withheld consent to be bound personally by the arbitration award or the prior judgment confirming the arbitration award against MKI, he is nevertheless bound because he controlled the prior litigation on MKI’s behalf. We reject First Options’ argument. Generally applicable res judicata rules must sometimes be adapted to fit the arbitration context. See
Dean Witter Reynolds, Inc. v. Byrd,
IV.
We turn now to the merits of Kaplan’s counterclaims. Kaplan asserts that First Options had no contractual right to assume control of MKI’s account, evict MKI from its offices, or prevent him from running MKI’s affairs. Kaplan also asserts that First Options improperly dissipated MKI’s assets in the process of liquidating its account. He argues that these actions breached both the express provisions of the parties’ agreements and First Options’ implied covenant of good faith and fair dealing. Kaplan argues that these breaches entitle him to damages and also discharge his obligation to surrender his income tax return.
We begin by considering Kaplan’s breach of contract claim. We analyze a claim for breach of contract by first examining the plain language of the parties’ agreements.
See American Flint Glass Workers Union v. Beaumont Glass Co.,
First Options argues that several provisions in the parties’ agreements grant it unfettered discretion to liquidate MKI’s account. 17 The first of these provisions states:
The undersigned [MKI] agrees to keep good, in every account in which the undersigned has an interest, a margin satisfactory to you [First Options] from time to time, and in the event that any such margin shall in your discretion be deemed insufficient, you shall have the right, whenever in your discretion you deem it necessary, to sell any or all of the undersigned’s securities and other property, to buy any or all securities and other property of which the undersigned may be short, and to close out any or all outstanding contracts, all without demand for margin or additional margin.
The remaining provisions are similar:
4. Clearing Member [First Options] and Clearing Corporation are each hereby severally authorized by Member [MKI], whenever it considers it necessary for its protection, ... to sell out or buy in any position or other asset in the Account, to cancel any open uncleared transaction, to exercise any option, and to close out the Account in whole or in part.
5. Any exercise, purchase, sale, buy in, sell out, netting, liquidation or cancellation made under this agreement, of the Account or any position or other assert therein may be made by ... Clearing Member, ...; according to its judgment and discretion, at public or private sale and without notice to Member.
As the bankruptcy court concluded, these provisions grant broad powers to First Op *2316 tions. Specifically, the provisions authorize First Options to buy assets in which the account has a short position, sell assets in the account, and close out the account entirely. Any of these actions may be taken whenever First Options deems it necessary for its protection. Accordingly, Kaplan’s argument that First Options was not authorized to liquidate the account once the TET risk was eliminated is incorrect.
However, the parties’ agreements do not grant First Options unlimited authority. As Kaplan asserts, the foregoing provisions do not authorize First Options to purchase new securities unless those securities are purchased to cover a short position. While the agreement states that First Options may “sell out or buy in any position or other asset in the Account,” that phrase must be read in light of the parties’ use of language in the agreement. The parties apparently use the phrases“sell out” and “buy in” to mean the acts of selling assets in the account and purchasing assets to cover the account’s short positions. Thus, a “buy in” refers to the power to “buy any or all securities and other property of which the undersigned may be short.”
Kaplan asserts that First Options “churned” the MKI account by opening new positions — i.e., purchasing new securities for which MKI did not have a short position at the time First Options assumed control. To the extent that First Options did this, it exceeded its contractual authority.
As discussed above, First Options did have the right to take control of and liquidate the MKI account. However, First Options’ rights did not amount to the unfettered dis-eretion of absolute ownership. Rather, the agreements state specifically what actions First Options could take to liquidate the account. The agreement’s language is simply not broad enough to permit First Options to manage the account without limitation — buying and selling securities unrelated to positions in the account until the account’s equity was dissipated. Kaplan offered evidence that First Options opened new positions that were unrelated to any preexisting short position. 18 Accordingly, we will remand the case to allow the bankruptcy court to compare the evidence of First Options’ actions to the actions specifically authorized in the agreement.
Y.
Kaplan asserts that First Options’ conduct not only violated the express provisions of the parties’ agreements, but also breached the covenant of good faith and fair dealing implied in every contract. The district court correctly stated the law on the implied covenant of good faith and fair dealing:
[U]nder Illinois law, a covenant to deal fairly and in good faith is implied in every contract. Saunders v. Michigan Ave. Nat’l Bank,278 Ill.App.3d 307 ,214 Ill.Dec. 1036 ,662 N.E.2d 602 , appeal denied,167 Ill.2d 569 ,217 Ill.Dec. 670 ,667 N.E.2d 1063 (1996); Northern Trust Co. v. VIII Michigan Assoc.,276 Ill.App.3d 355 ,212 Ill.Dec. 750 ,657 N.E.2d 1095 (1995); Abbott v. Amoco Oil Co.,249 Ill.App.3d 774 ,189 Ill.Dec. 88 ,619 N.E.2d 789 (1993), appeal denied,153 Ill.2d 557 , 191 Ill.Dec. *2317 616,624 N.E.2d 804 (1993). Moreover, this duty requires the party vested with discretion under the contract ‘to exercise that discretion reasonably and with proper motive, ... not ... arbitrarily, capriciously, or in a manner inconsistent with the reasonable expectations of the parties.’ Saunders,278 Ill.App.3d 307 ,214 Ill.Dec. 1036 ,662 N.E.2d 602 (quoting Dayan v. McDonald’s Corp.,125 Ill.App.3d 972 , 991,81 Ill.Dec. 156 ,466 N.E.2d 958 , 972 (1984)).
In re Kaplan, Civ. Action No. 95-95-6040 at 20.
The bankruptcy and district courts rejected Kaplan’s bad faith claim because they concluded that First Options’ actions in closing the account were specifically authorized by the parties’ agreements. The bankruptcy court stated that First Options’ “right to take control of the Account was practically unfettered and in its sole discretion” and that “[n]othing in the Workout Agreement purported to limit or qualify in any way [First Options’] rights under the Account Agreements.”
In re Kaplan,
Bankr.No. 93-10625DAS at 14-15, 24,
We agree with the lower courts’ conclusion that the language of the parties’ agreements protects First Options’ interest in the account by granting it extraordinarily broad discretion to eliminate risk and close the account. However, the agreements do not give First Options the right to act in bad faith or in a commercially unreasonable manner. The relationship between a margin account customer and broker is generally that of a pledgor and pledgee.
See In re Rosenbaum Grain Corp.,
It is true that the obligation of good faith and fair dealing cannot be used to negate specific contractual powers, even if the exercise of those powers causes harsh results.
See Olmos v. Golding,
First Options points out that the bankruptcy court’s opinion contains some language indicating that it did not act in bad faith. However, those statements are in tension with the court’s statements that First Options’ actions were unorthodox and possibly tainted by personal animus and with the statement that Kaplan’s expectations were “not necessarily unreasonable.” As noted above, the duty of good faith and fair dealing requires that a party exercise its discretion “reasonably and with proper motive, ... not ... arbitrarily, capriciously, or in a manner inconsistent with the reasonable expectations of the parties.” In re Kaplan, Civ. Action No. 95-95-6040 at 20. Accordingly, since First Options enjoyed a qualified discretion to take control of and liquidate MKI’s account, we will remand to allow the lower courts to consider whether First Options exercised its discretion in good faith.
VI.
For the foregoing reasons, we reverse the judgment of the district court and remand for further proceedings consistent with this opinion.
Notes
. A market maker is "a dealer who holds himself out ... as being willing to buy or sell securities for his own account on a continuous basis.” Philadelphia Stock Exch. By-Laws § 23-2. See also Philadelphia Stock Exch. Guide (CCH) ¶ 1552.
. Under this margin arrangement, First Options extended credit to MKI for trading purposes. By virtue of this leverage, MKI was able to carry significantly larger positions than would have been available if it had been limited to its own capital. As a result of this lender-borrower relationship, a clearing firm ordinarily has a security interest in the positions in its customers’ trading accounts.
. Several of these documents involved other parties not relevant to this appeal.
. As this court has previously determined in a related appeal, Mr. and Mrs. Kaplan executed this Letter Agreement in their individual capacities, but executed the remaining documents only on behalf of MKI. See Kaplan v. First Options of Chicago, Inc., 19 F.3d 1503, 1513-14 (3d Cir. 1994).
. A trader assumes a short position when he agrees to sell at a future date assets that he does not yet own. See Richard W. Jennings, et al., Securities Regulation 8 (7th ed. 1992); Richard A. Brealey & Stewart C. Myers, Principles of Corporate Finance 636 (4th ed.1991).
. The parties agree that MKI’s position was short approximately 150,000 to 170,000 shares of TET stock. Consequently, each dollar increase in the price of TET stock would have increased MKI’s loss by $150,000 to $170,000.
. Since the contract between Kaplan and First Options contains an Illinois choice-of-law provision, the district and bankruptcy courts correctly applied Illinois law to the contract claims at issue.
See Admiral Corp. v. Cerullo Elec. Supply Co.,
. If Kaplan had not received some consideration, his promise to pay would be an unenforceable gratuitous gift.
See Serpe v. Williams,
.Kaplan has consistently asserted that he is not personally liable for MKI’s debts, but this provision released him from any challenge to that position.
. Kaplan argues that, even if he lacks standing to seek recovery from First Options in his personal capacity, he has standing to assert the material breach of the parties’ agreements as a defense to First Options’ proof of claim. However, we believe that the considerations that govern Kaplan’s standing to bring his counterclaims also determine his standing to assert the defense of a material breach of the parties’ contract. If a release from liability was the only consideration that Kaplan received for his tax refund and if First Options honored that release, Kaplan cannot assert the breach of other promises to other entities as a defense to his obligation to surrender his refund. However, if the parties intended for Kaplan to give up his refund to benefit MKI, Kaplan is a direct party to the contract and may assert a material breach of the promise to benefit MKI as a defense to First Options’ efforts to enforce the contract. See generally Restatement (Second) of Contracts § 305(1) (noting that a promisor in a third-party contract has a duly to the promisee to perform, even though he also has a similar duly to the intended beneficiary).
. Our conclusion that MKI is an intended third-party beneficiary to Kaplan’s promise is sufficient to resolve First Options’ assertion that Kaplan lacks standing. Accordingly, we need not determine what damages Kaplan may recover if it proves that First Options breached its promises.
See generally Banker’s Trust Co. v. Steenburn,
. Because the district court concluded that Kaplan’s counterclaims lacked substantive merit, it did not address this issue. See Kaplan, Civ. Action No. 95-6040 at 9.
. The bankruptcy court also concluded that, for purposes of the motion to dismiss, First Options failed to show that Kaplan controlled MKI's pri- or arbitration.
. Pennsylvania's appellate courts have repeatedly held that a judgment against a corporation is not binding on a shareholder or officer of the corporation in subsequent litigation. See,
e.g., Hornstein v. Kramer Bros. Freight Lines, Inc.,
. This conclusion is supported by the rationale advanced by the majority of circuits in holding that federal law governs the preclusive effect of a diversity judgment in a subsequent diversity suit. These courts have reasoned that preclusion rules are procedural rather than substantive, and therefore the
Erie
doctrine does not require federal courts to apply state law.
See, e.g., Hunt v. Liberty Lobby, Inc.,
One of the strongest policies a court can have is that of determining the scope of its own judgments____ It would be destructive of the basic principles of the Federal Rules of Civil Procedure to say that the effect of a judgment of a federal court was governed by the law of the state where the court sits simply because the source of federal jurisdiction is diversity.... [I]t would be a strange doctrine to allow a state to nullify the judgments of federal courts constitutionally established and given power also to enforce state created rights.
See also, RecoverEdge L.P. v. Pentecost,
.
Cf. McDonald v. City of West Branch,
. These provisions are embodied in several contracts executed before and after the 1987 workout: (a) the Combined Market Makers’, Specialists’ or Registered Traders’ Account Agreement dated June 1, 1987 and (b) the Market Maker’s Agreements dated November 15, 1984 and June 1, 1987. As the bankruptcy court found, the two Market Maker's Agreements are identical.
. The bankruptcy court stated that Kaplan failed to present sufficient evidence of such "opening trades” and failed to allege that these trades decreased the value of MKTs account. See In re Kaplan, Bankr.No. 93-10625DAS at 18. This conclusion may well be true. We express no opinion as to the sufficiency of Kaplan’s evidence because the parties have not addressed the issue. First Options has not asserted it as an alternative basis for affirmance, and we believe that the bankruptcy court is better suited to compare the evidence with the parties’ contracts since it presided over the trial and is familiar with the complex stocktrading documentation at issue. Given our conclusion that First Options did not enjoy unlimited discretion under the parties’ contracts, we remand to allow the bankruptcy court to compare the evidence supporting Kaplan’s various allegations to the specific actions permitted by the parties' contracts. This comparison need not be limited to opening trades but could involve any unauthorized activities.
Lastly, we note that the bankruptcy court’s statement regarding Kaplan’s evidence assumes that, once Kaplan proves a breach of the parties’ promises, his damages are to be measured by the value of MKI’s account. As previously noted, we do not decide the proper measure of Kaplan’s damages, and we therefore express no opinion on the validity of this assumption. See supra n. 10.
. The Seventh Circuit has stated that Illinois does not recognize an action for breach of the implied covenant independent of a breach of contract claim.
Continental Bank,
