Document:

<PAGE>
                                                                     Exhibit 4.7

                                                               Final 23. Jan. 02

--------------------------------------------------------------------------------

                            SHARE PURCHASE AGREEMENT

--------------------------------------------------------------------------------

                   regarding the acquisition of the shares of

                         OBTREE TECHNOLOGIES INC., BASEL

<PAGE>
                                       2
                                                   IXOS Software AG - SPA Obtree
                                                               Final 23. Jan. 02

By and between

1.       IXOS SOFTWARE AG
         Bretonischer Ring 12
         85630 Grasbrunn
         Germany

                                                                 - "PURCHASER" -

2.       VARUMA AG
         Neuhofweg 11
         4102 Binningen
         Switzerland

                                                                    - "VARUMA" -

3.       THE SHAREHOLDERS LISTED ON EXHIBIT 01 HERETO
         represented as provided by
         the powers of attorney attached hereto as Exhibit 02

                                                        - "OTHER SHAREHOLDERS" -

- the parties to (1), (2) and (3) also collectively the "PARTIES", each of the
Parties also a "PARTY"; the parties to (2) and (3) collectively also the
"SELLERS", each of the Sellers also a "SELLER" -

                                    PREAMBLE

A.       Obtree Technologies Inc. is a Swiss stock corporation with its
         corporate seat in Basel, Switzerland, and registered with the
         commercial register at Basel under docket no. CH-270.3.002.243-8 (the
         "COMPANY"). The share capital of the Company amounts to CHF
         7,434,744.50 and is split into 14,869,489 shares with a nominal
         participation in the share capital of CHF 0.50 per share. The shares
         are not listed on a stock exchange. 14,790,347 of these shares are
         issued to the shareholders of the Company, (collectively the "SHARES",
         individually the "SHARE"), the remaining 79,142 shares are treasury
         stock held by the Company itself. No share certificates have been
         issued.

<PAGE>
                                       3
                                                   IXOS Software AG - SPA Obtree
                                                               Final 23. Jan. 02

B.       Varuma holds 9,477,735 shares in the Company and the Other Shareholders
         hold 4,783,218 shares in the Company (collectively the "SELLERS'
         SHARES").

C.       Purchaser is interested to acquire 100 % of the shares of the Company
         by acquiring the Sellers' Shares by executing this Agreement and the
         remaining shares (the "REMAINING SHARES") in the Company from the
         shareholders listed in EXHIBIT C (the "REMAINING SHAREHOLDERS") by
         entering into share purchase agreements at conditions equal to the ones
         contemplated by this Agreement with the Remaining Shareholders (the
         "REMAINING AGREEMENTS").

D.       The Sellers wish to sell the Sellers' Shares to Purchaser, and
         Purchaser wishes to purchase the Sellers' Shares.

E.       Where mentioned in this Agreement, Varuma shall act as agent (the
         "AGENT") for the Sellers.

NOW, THEREFORE, THE PARTIES AGREE AS FOLLOWS:

1.       SALE OF SELLER'S SHARES

1.1      Sellers hereby sell the Sellers' Shares to Purchaser with all rights
         and obligations pertaining thereto. Purchaser hereby accepts the sale.

1.2      The sale of the Sellers' Shares is subject to the payment of the Share
         Price to the Escrow Accounts in accordance with Section 2 below.

1.3      The sale of the Sellers' Shares shall include all ancillary rights
         appertaining thereto (Nebenrechte), including the rights to any
         undistributed profits from any periods prior to the day of signing of
         this Agreement ("SIGNING DATE") and the rights to dividends for the
         full fiscal year 2002.

1.4      Beneficial title to the Sellers' Shares shall pass (wirtschaftlicher
         Ubergang) to Purchaser as of February 1, 2003, 0:00 hours (the
         "EFFECTIVE DATE").

<PAGE>
                                       4
                                                   IXOS Software AG - SPA Obtree
                                                               Final 23. Jan. 02

2.       SHARE PRICE/ESCROW ACCOUNT

2.1      As purchase price for the sale and transfer of the Sellers' Shares
         pursuant to Section 1.1 above Purchaser shall pay to Sellers a cash
         consideration of CHF 0.52 (in words: Swiss Francs zero and fifty two
         cents) per Sellers' Share (hereinafter the "SHARE PRICE") subject to
         the Share Price Adjustment as set out in Section 2.3.

2.2      The Share Price is based on an enterprise value of (Share Price
         multiplied by the number of 14,790,347 Shares) CHF 7,690,980.44 (in
         words: Swiss Francs seven million six hundred ninety thousand nine
         hundred eighty and forty four cents) assessed on the assumption that
         the Actual Net Equity (as defined hereinafter) amounts per December 31,
         2002 to CHF -6,000,000.00 (in words: Swiss Francs minus six million)
         (the "GUARANTEED NET EQUITY"). "Actual Net Equity" means the
         consolidated net equity of the Company and its subsidiaries (the
         "COMPANIES") according to US GAAP as per December 31, 2002. The Company
         will in its Financial Statements as defined in Section 4.4 provide for
         a general provision of at least CHF 800,000.00 (in words: Swiss Francs
         eight hundred thousand) covering (among other claims and risks) claims
         from Mepomuk Software GmbH against the Company and tax claims and risks
         (without subdividing or allocating the provision to specific claims and
         risks).

2.3      Not later than 15 (fifteen) Banking Days after the Signing Date, the
         Company shall submit to the Parties the audited Financial Statements as
         defined in Section 4.4. The Financial Statements shall be prepared
         under the direction of Chris Jenni as provided in Section 4.4.
         Purchaser shall direct the Company to give Chris Jenni and his team
         fullest support to prepare the statements. In case that the Actual Net
         Equity falls short of the Guaranteed Net Equity, the Share Price as
         stated in Section 2.1. above shall be reduced as follows (the "SHARE
         PRICE ADJUSTMENT"):

         For each CHF that the Actual Net Equity falls short of the Guaranteed
         Net Equity, the enterprise value as determined in Section 2.2 above
         shall be reduced accordingly and a new price per Share shall be
         calculated on the basis of the reduced enterprise value; provided that
         such reduction shall only take place if the difference between the
         Actual Net Equity and the Guaranteed Net Equity is more than CHF
         500,000.00 (Freigrenze).

<PAGE>
                                       5
                                                   IXOS Software AG - SPA Obtree
                                                               Final 23. Jan. 02

         The maximum Share Price Adjustment shall be CHF 0.19 (in words Swiss
         Francs zero and nineteen cents) per Share.

2.4      On the Signing Date, the Share Price shall be paid as follows:

         -        an amount of CHF 6,702,647.91 equal to CHF 0.47 (in words:
                  Swiss Francs zero and forty seven cents) per Sellers' Share,
                  shall be paid to the Escrow Account I (as defined in Section
                  2.5, the "ESCROW AMOUNT I") and

         -        an amount of CHF 713,047.65 equal to CHF 0.05 (in words: Swiss
                  Francs zero and five cents) per Sellers' Share shall be paid
                  to the Escrow Account II (as defined in Section 2.6, the
                  "ESCROW AMOUNT II").

2.5      Prior to the Signing Date, Purchaser and Agent shall open with a
         reputable Swiss bank to be designated by Purchaser and Agent (the
         "ESCROW AGENT") a bank account to be jointly held by Agent and
         Purchaser ("UND"-Konto, the "ESCROW ACCOUNT I") to receive payment by
         Purchaser of the Escrow Amount I.

         Unless provided otherwise in this Agreement, the Escrow Account I shall
         be subject to the terms and conditions agreed upon between the Agent
         and Purchaser on the one side and the Escrow Agent I on the other side.
         Purchaser shall open the Escrow Account I in agreement with the Agent.
         Interest accrued on the Escrow Account I shall be added to and
         considered to be part of the Escrow Amount I. The fees and expenses of
         the Escrow Agent shall be paid by the Purchaser.

         The Escrow Agent shall be instructed to release any funds on the Escrow
         Account I only

         2.5.1    in accordance with corresponding (ubereinstimmenden) written
                  instructions by Agent and Purchaser, or

         2.5.2    to Varuma on behalf of Sellers within twelve Banking Days
                  after presentation by the Company of the audited Financial
                  Statements to the Purchaser as defined in Section 4.4 the
                  Escrow Amount I except for the amount of the Escrow Account I
                  for which the Purchaser can provide proof of a pending court
                  action between Sellers and Purchaser regarding the Share Price
                  Adjustment in accordance with Section 2.3 hereof or regarding
                  a rescission in accordance with Section 3 hereof, in each case
                  including a

<PAGE>
                                       6
                                                   IXOS Software AG - SPA Obtree
                                                               Final 23. Jan. 02

                  specific request relating to the attribution of the remaining
                  Escrow Amount I.

2.6      Prior to the Signing Date, Agent and Purchaser shall open with the
         Escrow Agent a second bank account to be jointly held by Agent and
         Purchaser ("UND"-Konto, the "ESCROW ACCOUNT II") to receive payment by
         Purchaser of the Escrow Amount II. The funds on the Escrow Account II
         shall serve as collateral for Purchaser with respect to any claims of
         Purchaser against Sellers under or in connection with this Agreement.

         Unless provided otherwise in this Agreement, the Escrow Account II
         shall be subject to the terms and conditions agreed upon between the
         Agent and Purchaser on the one side and the Escrow Agent II on the
         other side. Purchaser shall open the Escrow Account II in agreement
         with the Agent. Interest accrued on the Escrow Account II shall be
         added to and considered to be part of the Escrow Amount II. The fees
         and expenses of the Escrow Agent shall be paid by the Purchaser.

         The Escrow Agent shall be instructed to release any funds on the Escrow
         Account II only

         2.6.1    in accordance with corresponding (ubereinstimmenden) written
                  instructions by Agent and Purchaser, or

         2.6.2    to Purchaser in such amounts in which payment claims of
                  Purchaser against Sellers have been adjudicated by court
                  judgment (gerichtliches Urteil), arbitral award
                  (Schiedsspruch) or other enforceable instrument (sonstiger
                  Vollstreckungstitel) in all cases upon presentation by
                  Purchaser of an original (Ausfertigung) of the respective
                  instrument, or

         2.6.3    pursuant to the following paragraph:

                  On June 30, 2004, unless Agent and Purchaser have instructed
                  the Escrow Agent otherwise or unless Purchaser can provide
                  proof of a pending court action between Sellers and Purchaser
                  in connection with this Agreement that includes a specific
                  request relating to the attribution of the remaining Escrow
                  Amount II, the Escrow Agent shall release to Agent (on behalf
                  of Sellers) the funds then remaining on the Escrow Account II.

3.       RESCISSION RIGHTS (RUCKTRITTSRECHTE)

<PAGE>
                                        7
                                                   IXOS Software AG - SPA Obtree
                                                               Final 23. Jan. 02

3.1      Purchaser shall have the right to withdraw from this Agreement without
         any liability to the Sellers if

         3.1.1    according to a review of the audited Financial Statements
                  (with an unqualified auditors' opinion as defined in Section
                  4.4) by Ernst & Young, Frankfurt, the difference between
                  Guaranteed Net Equity and Actual Net Equity exceeds CHF
                  3,000,000.00 (Swiss Francs three million); or

         3.1.2    if Other Shareholders withdraw from this Agreement, for
                  reasons whatsoever and if because of such withdrawal the
                  Purchaser's shareholding in the Company falls below 90% of the
                  Shares of the Company; provided that the Purchaser may only
                  rescind if (i) the acceptance period for the offer to the
                  Remaining Shareholders according to Section 7.3 has expired
                  and (ii) the Company and the Purchaser are unable to reach 90%
                  shareholding by way of capital reduction and increase of the
                  share capital by CHF 5'000'000.--.

3.2      Purchaser shall have the right to withdraw according to Section 3.1.1
         above not later than 10 (ten) Banking Days after presentation by the
         Company of the audited Financial Statements to the Purchaser as defined
         in Section 4.4; the right to withdraw under Section 3.1.2 shall be
         exercisable within 60 (sixty) Banking Days following the Signing Date.

4.       SELLERS' GUARANTEES

         Sellers hereby represent (sichern zu) and warrant (garantieren) to
         Purchaser that the following statements are complete and correct in all
         respects and are not misleading, in each case as of the Signing Date
         (the "SELLERS GUARANTEES"):

4.1      Organization and Qualification. The Companies are duly organized and
         validly existing under the laws under which they have been incorporated
         and have full right and authority to own and to operate their
         properties and to engage in the business in which they are now engaged.

4.2.     Capital Structure. All Shares have been validly issued and fully paid
         in. No further capital, non-voting stock, convertible securities or
         similar rights in the Companies have been created or issued or agreed
         to be issued by the Signing Date.

<PAGE>
                                        8
                                                   IXOS Software AG - SPA Obtree
                                                               Final 23. Jan. 02

4.3      Ownership. Sellers are the sole owners of and have good and valid title
         to the Sellers' Shares, which are free and clear of all liens,
         encumbrances, options, charges, equities and claims arising from any
         privilege, pledge or security arrangement. The Sellers have full right
         and capacity to transfer and sell complete title to the Sellers'
         Shares. The Company owns all the issued and outstanding shares of the
         Subsidiaries.

4.4      Financial Statements. The complete consolidated financial statements of
         the Company and the financial statements of its subsidiaries as audited
         (including in each case, where applicable, the balance sheet (Bilanz),
         the profit and loss statement (Gewinn- und Verlustrechnung), the notes
         (Anhang), the business report (Geschaftsbericht), and to the extent
         required by the applicable GAAPs the cash flow statement and the equity
         consolidation, collectively the "FINANCIAL STATEMENTS") for the fiscal
         years ending December 31, 2001 and 2002 have been (a) prepared in
         accordance with US-GAAP (the consolidated group), UK-GAAP (Obtree
         Technologies UK Ltd.) and Swiss GAAP (the Company and Obtree
         Technologies Switzerland AG) and accounting practices commonly adopted
         by companies carrying on business similar to those carried out by the
         Companies utilizing and continuing the same capitalization and election
         rights as well as valuation principles used by the Companies (in all
         cases in accordance with applicable GAAP) in preparation of its monthly
         account for September 2002. If there remain valuation, election and
         other discretion rights, such discretion shall be exercised in the best
         interest of the Sellers. (b) The Financial Statements present a true
         and fair view of the net worth as well as of the assets and liabilities
         (Vermogenslage), the financial position (Finanzlage) and the earnings
         position (Ertragslage) of the Companies. (c) The Financial Statements
         have been properly audited and an unqualified auditors' opinion
         (Bericht der Revisionsstelle) has been affixed, whereby a note in the
         opinion saying that the equity is less than half of the share capital
         but that there is no need to call a general meeting of the shareholders
         in accordance with Art. 725 para. (1) of the Swiss Code of Obligations
         because there is subordinated debt exceeding the difference between
         equity and half of the share capital shall not be considered to be a
         qualification.

         In particular, on December 31, 2002 the Companies had good and clear
         title free of all liens and/or other encumbrances whatsoever to all
         assets listed on the respective balance sheets except as declared
         otherwise in the Financial Statements.

<PAGE>
                                        9
                                                   IXOS Software AG - SPA Obtree
                                                               Final 23. Jan. 02

4.5      Claims of Mepomuk Software GmbH. Except and to the extent as provided
         for in the Financial Statements, the setting-off of claims between the
         Company and Mepomuk Software GmbH will not be contested by an
         insolvency receiver appointed for Mepomuk Software GmbH and no claims
         of Mepomuk Software GmbH can be raised against the Company based on
         German corporate or insolvency law.

4.6.     Insolvency of Companies. Except for Mepomuk Software GmbH, no
         insolvency proceedings have been, or have been threatened to be,
         applied for regarding the assets of the Companies and there are no
         circumstances which would require the initiation of such proceedings.
         None of the Companies have stopped or suspended payment of their debt
         or otherwise become insolvent or over-indebted. No circumstances exist
         pursuant to any applicable bankruptcy laws which would justify the
         voidance of this Agreement. No debt settlement arrangement between any
         of the Companies and its creditors has been proposed or agreed.

4.7      Claims and Litigation. Except and to the extent as provided for in the
         Financial Statements, there are no actions, suits or proceedings
         pending against the Companies either in court or before any
         administrative board, agency or commission.

4.8      Taxes. Except and to the extent as provided for in the Financial
         Statements, the Companies have paid all taxes which have become due by
         December 31, 2002, especially the Companies do not have any obligations
         to pay VAT for any time period before December 31, 2002 (keine
         Verpflichtung zur Zahlung von Mehrwertsteuer fur Zeitraume vor dem
         Signing Date), and there is no further liability for any such taxes to
         be paid for any time period before December 31, 2002 and no interests
         or penalties accrued or accruing with respect thereto.

4.9      Intellectual Property/Know-how. The Companies own or have adequate
         license to use all the know-how and all patents, trademarks, trade
         names, copyrights and other intellectual property rights which are
         necessary for the conduct of their business as it is conducted at the
         Signing Date. In particular, all the patents, tradenames, copyrights
         and trademarks set forth in EXHIBIT 4.9 are valid and owned by the
         Companies. To the best knowledge of the Sellers these patents,
         tradenames, copyrights and trademarks do not violate the rights of any
         third party and third parties do not have any rights to such patents,
         tradenames, copyrights and trademarks and the Companies have no
         obligations to disclose such patents, tradenames, copyrights and
         trademarks to any third parties.

<PAGE>
                                       10
                                                   IXOS Software AG - SPA Obtree
                                                               Final 23. Jan. 02

4.10     Fees of Vischer Anwalte. The lawyers of the Company, Vischer Anwalte,
         have not invoiced fees in connection with this transaction exceeding
         CHF 50,000.00 for the time between November 1, 2002 and the Signing
         Date.

5.       REMEDIES FOR PURCHASER

5.1      In the event of a breach of the Sellers' Guarantees under Section 4,
         amounts equal to Sellers' pro rata share (as defined in Section 5.7) of
         the damages shall be released to Purchaser from the Escrow Account II
         pursuant to the following provisions.

5.2      In the event of a breach of the Guarantee in Section 4.5 (Mepomuk), the
         damage shall be equal to the claims of Mepomuk Software GmbH or its
         insolvency estate against the Company.

5.3      In the event of a breach of the Guarantee in Section 4.8 (Taxes), the
         damage shall be equal to the additional taxes, interest and penalties.

5.4      In the event of a breach of the Seller's Guarantee in Section 4.4, the
         Parties shall recalculate the Actual Net Equity as per December 31,
         2002 as if there had been no breach and as if additional amounts due to
         remedy the damage had been duly reflected. The Parties then shall
         redetermine whether such revised Actual Net Equity would have had lead
         to a Share Price Adjustment under Section 2.3 paragraphs 1 and 2 (i.e.,
         reflecting the "Freigrenze", but disregarding the maximum amount). If
         this would have been the case, the damage shall be equal to such
         recalculated Share Price Adjustment multiplied with Sellers' Shares.

5.5      In the event of a breach of any other Seller's Guarantees the damage
         shall be equal to the amount necessary to restore the damage suffered
         by the Purchaser to the warranted position (Schadensersatz).

5.6      All claims of Purchaser arising under this Agreement shall be
         time-barred on or after June 30, 2004. except for all claims of
         Purchaser in respect of liabilities for defects of title arising from a
         breach in respect of Section 4.3 which shall be time barred on or after
         the 7th anniversary of the Signing Date, but which will continue to
         exist only against the individual Seller in breach of Section 4.3.

<PAGE>
                                       11
                                                   IXOS Software AG - SPA Obtree
                                                               Final 23. Jan. 02

5.7      The liability of each Seller for each damage shall be prorated in
         relation to each Seller's shareholding. The aggregate liability of the
         Sellers under Section 5.1 is in any event limited to CHF 0.05 (in
         words: Swiss Francs zero and five cents) per Sellers' Share.

5.8      The Purchaser shall solely recover damages from the Escrow Account.
         There shall be no personal liability of the Sellers under Sections 4
         and 5 of this Agreement. The maximal amount of damages payable to the
         Purchaser under Sections 4 and 5 of this Agreement shall be limited to
         the Escrow Account.

5.9      The Parties are in agreement that the remedies that the Purchaser may
         have against each Seller individually for breach of obligations set
         forth in this Agreement are solely governed by this Agreement, and the
         remedies provided for by this Agreement shall be the exclusive remedies
         available to Purchaser.

5.10     No information not expressly contained in this Agreement or any of the
         Exhibits thereto shall be held against the Purchaser in respect of any
         Sellers' Guarantees as set out in Section 4 in this Agreement.

5.11     When circumstances become evident that will lead to a breach of
         Guarantee, the Purchaser shall without undue delay inform the Agent,
         and the Purchaser and the Company shall use their best efforts to
         prevent and reduce the damage as much as possible.

6.       PRESS RELEASES

6.1      Neither Party shall, without the prior written consent of Purchaser and
         Agent, disclose the contents of this Agreement to third parties or make
         any information relating thereto available to third parties until the
         first public announcement. This shall not, however, apply to the extent
         a Party or any affiliate of a Party may be obliged to make any
         announcement or disclosure under applicable laws or regulations
         (including, but not limited to the rules of relevant stock exchanges).

6.2      Except for disclosures or statements required under applicable laws or
         regulations, the press releases or public statements by one Party in
         connection with this Agreement shall be mutually agreed upon between
         Purchaser and Agent prior to the release hereof.

<PAGE>
                                       12
                                                   IXOS Software AG - SPA Obtree
                                                               Final 23. Jan. 02

7.       MISCELLANEOUS

7.1      The Purchaser shall elect new members of the board of directors of the
         Company (Mitglieder des Verwaltungsrats) and shall resolve to release
         fully all of the members of the board of directors of the Company
         having resigned as of the Signing Date at the shareholders' meeting
         scheduled for February 7, 2002. Promptly thereafter, the resignations
         of the members having resigned from their position effective as of the
         Signing Date, shall be filed with the registry of commerce.

7.2      Varuma hereby waives in favour of the Company its right to partly
         convert the loan granted to the Company in the amount of CHF 5,000,000
         ("Loan Amount") into equity of the Company and agrees to accept
         repayment at any time. The Purchaser agrees (i) to direct the Company
         to repay the loan and accrued interest on or before March 31, 2003, and
         (ii), if the Company fails to make the payment, to repay the Loan
         Amount and accrued interest itself to Varuma on behalf of the Company.

7.3      Promptly after the Financial Statements have been submitted pursuant to
         Section 2.3, the Purchaser shall make an offer to all Remaining
         Shareholders to buy the Remaining Shares at a price equal to the Share
         Price and with an equal deduction payable to the Escrow Account I
         (unless settled before) and the Escrow Account II and at the same
         conditions as contemplated by this Agreement.

7.4      Subject to Section 4.10 hereof, all expenses, costs, fees and charges
         in connection with the transactions contemplated under this Agreement
         including, without limitations, legal services, shall be borne by the
         Party commissioning the respective costs, fees and charges.

7.5      In this Agreement the headings are inserted for convenience only and
         shall not affect the interpretation of this Agreement; where a German
         term has been inserted in italics it alone (and not the English term to
         which it relates) shall be authoritative for the purpose of the
         interpretation of the relevant English term in this Agreement. All
         Exhibits to this Agreement constitute an integral part of this
         Agreement.

7.6      "BANKING DAYS" shall mean days banks are open for Banking in Basel,
         Switzerland.

<PAGE>
                                       13
                                                   IXOS Software AG - SPA Obtree
                                                               Final 23. Jan. 02

7.7      Amendments to this Agreement, including this provision, must be made in
         writing (including telecopy) by the Parties or in any other legally
         required form, if so required.

7.8      The Sellers shall not be entitled to assign any rights or claims under
         this Agreement without the written consent of the Purchaser.

7.9      All notices and other communications hereunder shall - unless expressly
         provided otherwise - be made in writing and shall be delivered or sent
         by registered mail or courier to the addresses below or to such other
         addresses which may be specified by any Party to the other Party in the
         future in writing:

             for Purchaser:                       with copy to:
             IXOS Software AG                     Dr. Andreas Hoffmann
             Bretonischer Ring 12                 Baker & McKenzie
             85630 Grasbrunn, Germany             Theatinerstrasse 23
             Attn.: Mr. Manuel Dohr               80333 Munich, Germany

             for Sellers:                         with copy to:
             Varuma AG                            Dr. Sebastian Burckhardt
             Neuhofweg 11                         Vischer Anwalte und Notare
             4102 Binningen, Switzerland          Aeschenvorstadt 4 Postfach 526
             Attn.: Rudolf Maag                   4010 Basel, Switzerland

7.10     Should any provision of this Agreement be held wholly or in part
         invalid or unenforceable, the validity or enforceability of the other
         parts shall not be affected thereby. In place of the invalid or
         unenforceable provision the Parties shall agree on an appropriate valid
         and enforceable provision, which serves best the economic interest of
         the contract Parties originally pursued by the invalid or unenforceable
         provision.

7.11     This Agreement shall be governed by and construed in accordance with
         the laws of Switzerland. The exclusive jurisdiction for legal actions
         from or in connection with this Agreement is Basel, Switzerland.

                            [SIGNATURE PAGE FOLLOWS]
<PAGE>
                                       14
                                                   IXOS Software AG - SPA Obtree
                                                               Final 23. Jan. 02

This 23rd day of January 2003

<TABLE>
<S>                            <C>                              <C>
/s/ Robert Hoog                 /s/ Peter Rau                   /s/ Rudolf Maag
------------------------------  ------------------------------  -------------------------------
IXOS Software AG                                                Varuma AG

                                                                /s/ Rolf Brugger
                                                                -------------------------------
                                                                Rolf Brugger, as representative
                                                                of the Other Shareholders
</TABLE><PAGE>

                                                                   EXHIBIT 10.21

                            SHORTFALL LOAN AGREEMENT

                         DATED AS OF SEPTEMBER 30, 2003

                                     BETWEEN

                             UNI-MARTS, INC. AND ITS

                            CONSOLIDATED SUBSIDIARIES

                                       AND

                               THE PROVIDENT BANK

<PAGE>

                                TABLE OF CONTENTS

<TABLE>
<S>                                                                                  <C>
ARTICLE I.........................................................................    2
         1.01   Certain Definitions...............................................    2
         1.02   Construction......................................................    5
ARTICLE II........................................................................    6
         2.01   Revolving Credit Loans............................................    6
         2.02   Interest Rates....................................................    7
         2.03   Interest Payment Dates............................................    7
         2.04   Payments..........................................................    7
         2.05   Closing Fee.......................................................    8
         2.06   Indemnities.......................................................    8
         2.07   Loan Account......................................................    9
         2.08   Termination.......................................................    9
         2.09   Security..........................................................    9
ARTICLE III.......................................................................   10
         3.01   Representations and Warranties from Credit Agreement..............   10
         3.02   Authority and Authorization.......................................   10
         3.03   Execution and Binding Effect......................................   10
         3.04   Absence of Conflicts..............................................   10
         3.05   Authorizations and Filings........................................   11
         3.06   Proceeds..........................................................   11
         3.07   Margin Stock......................................................   11
         3.08   No Event of Default; Compliance with Agreements...................   11
         3.09   Accurate and Complete Disclosure..................................   11
         3.10   Security Interest.................................................   11
         3.11   Transaction Documents.............................................   12
ARTICLE IV........................................................................   12
         4.01   Initial Loans.....................................................   12
         4.02   Each Additional Loan..............................................   14
ARTICLE V.........................................................................   14
         5.01   Incorporated Affirmative Covenants................................   14
         5.02   Use of Proceeds...................................................   15
         5.03   Further Assurances................................................   15
ARTICLE VI........................................................................   15
         6.01   Incorporated Negative Covenants...................................   15
         6.02   Changes in Transaction Documents..................................   15
ARTICLE VII.......................................................................   16
         7.01   Events of Default.................................................   16
         7.02   Consequences of an Event of Default...............................   17
         7.03   Set-Off...........................................................   17
ARTICLE VIII......................................................................   18
         8.01   Holidays..........................................................   18
         8.02   Records...........................................................   18
         8.03   Amendments and Waivers............................................   18
         8.04   No Implied Waiver; Cumulative Remedies............................   18
         8.05   Notices...........................................................   19
         8.06   Expenses; Taxes; Attorneys' Fees..................................   20
         8.07   Severability......................................................   20
         8.08   Governing Law; Consent to Jurisdiction............................   20
         8.09   Prior Understandings..............................................   20
         8.10   Duration; Survival................................................   20
         8.11   Term of Agreement.................................................   21
         8.12   Counterparts......................................................   21
         8.13   Successors and Assigns............................................   21
         8.14   No Third Party Beneficiaries......................................   21
</TABLE>

                                       i
<PAGE>

<TABLE>
<S>                                                                               <C>
      8.15   Participation.....................................................   21
      8.16   Exhibits..........................................................   21
      8.17   Headings..........................................................   22
      8.18   Joinder of Consolidated Subsidiaries..............................   22
      8.19   WAIVER OF TRIAL BY JURY...........................................   22
EXHIBITS.......................................................................   24
      Exhibit "A"  Revolving Credit Note.......................................   24
      Exhibit "B"  Loan Request................................................   25
      Exhibit "C"  Opinion of Counsel..........................................   26
</TABLE>

                                       ii
<PAGE>

                            SHORTFALL LOAN AGREEMENT

         THIS SHORTFALL LOAN AGREEMENT, dated as of September 30, 2003, by and
between UNI-MARTS, INC., a Delaware corporation ("Uni-Marts"), each of the
Consolidated Subsidiaries of Uni-Marts, initially Uni-Marts of America, Inc.,
and each other Consolidated Subsidiary which joins this Agreement as a Borrower
after the date hereof pursuant to Section 8.18 of this Agreement (the
"Consolidated Subsidiaries") (Uni-Marts and the Consolidated Subsidiaries are
individually called a "Borrower" and collectively called the "Borrowers"),

                                       AND

         THE PROVIDENT BANK, a bank chartered under the laws of the State of
Ohio (the "Lender");

                                    RECITALS:

         Uni-Marts, Uni-Realty of Luzerne, L.P., a Delaware limited partnership
("Luzerne), and Uni Realty of Wilkes-Barre, L.P., a Delaware limited partnership
("Wilkes-Barre"), are parties to certain loans (the "FFCA Loans") made by FFCA
Acquisition Corporation or FFCA Funding Corporation (each, "FFCA") with respect
to the land, buildings and/or equipment at certain properties owned or leased by
Uni-Marts, Luzerne or Wilkes-Barre (the "Properties"). The FFCA Loans are
evidenced by promissory notes and are secured by first priority liens and
security interests on the Properties. Some of the FFCA Loans were assigned by
FFCA to Washington Mutual Bank, FA ("WAMU"). The other FFCA Loans were
securitized and are now held by LaSalle Bank National Association ("LaSalle"),
as Indenture Trustee pursuant to those certain Indentures dated as of April 1,
1999 and November 1, 2000. GE Capital Franchise Finance Corporation ("GECFF") is
the successor by merger to FFCA and the servicer for the FFCA Loans (the
"Servicer").

         Uni-Marts, Luzerne and Wilkes-Barre each have identified certain
under-performing Properties (the "Underperforming Properties") and would like to
sell such Underperforming Properties to third parties and prepay the FFCA Loans
corresponding to such Properties at the closing (the "Underperforming Property
Sale Closing") of such sales (the "Disposition Plan").

         GECFF has requested that Borrowers obtain a discrete credit facility to
fund the amount by which the outstanding loan balance for a given FFCA Loan
exceeds the net proceeds of the sale of an Underperforming Property associated
with such FFCA Loan pursuant to (i) the Master Property Disposition Agreement
dated as of September 30, 2003 by and among WAMU, Uni-Marts and Luzerne, (ii)
the Master Property Disposition Agreement dated as of September 30, 2003 by and
among LaSalle, as Indenture Trustee pursuant to that certain Indenture dated as
of

                                       1
<PAGE>

November 1, 2000, Uni-Marts and Wilkes-Barre, and (iii) the Master Property
Disposition Agreement dated as of September 30, 2003 by and between LaSalle, as
Indenture Trustee pursuant to that certain Indenture dated as of April 1, 1999,
and Uni-Marts (collectively, the "Master Agreement").

         The Borrowers have requested that the Lender provide the Borrowers with
such credit facility and the Lender is willing to provide such credit facility
on the terms, and subject to the conditions, set forth in this Agreement.

         NOW, THEREFORE, in consideration of the premises and of the mutual
covenants contained in this Agreement, and intending to be legally bound, the
parties agree as follows:

                                    ARTICLE I

                                   DEFINITIONS

         1.01     Certain Definitions. In addition to other words and terms
defined elsewhere in this Agreement or in the other Loan Documents, the
following words and terms have the following meanings, respectively, unless the
context otherwise clearly requires:

         "Account Security Agreement (Subordinated)" means, collectively, the
three (3) Account Security Agreements (Subordinated) dated as of the date of
this Agreement, and as amended, modified or supplemented from time to time, by
and between Uni-Marts and Lender.

         "Agreement" means this Shortfall Loan Agreement as amended, modified or
supplemented from time to time. This Agreement is the agreement evidencing the
"Shortfall Loan" pursuant to the Master Agreement.

         "Bankruptcy Code" shall mean 11 U.S.C. Section 101 et seq. as the same
may be modified or amended from time to time.

         "Borrower" or "Borrowers" means one or more of Uni-Marts or the
Consolidated Subsidiaries, as the context may require.

         "Borrower Collateral Unit Excess Proceeds" shall have the meaning
ascribed to such term in the Master Agreement.

         "Borrower Collateral Unit Shortfall" shall have the meaning ascribed to
such term in the Master Agreement.

         "Business Day" means any day other than a Saturday, Sunday, public
holiday under the laws of the Commonwealth of Pennsylvania or the State of Ohio
or other day on which the Lender is not open for business in Cincinnati, Ohio.

         "Closing" means the closing of the transactions provided for in this
Agreement on the Closing Date.

                                       2
<PAGE>

         "Closing Date" means September 30, 2003 or such other date upon which
the parties may agree.

         "Consolidated Subsidiary" or "Consolidated Subsidiaries" means any
Subsidiary whose financial results of operations are consolidated with those of
Uni-Marts. "Consolidated Subsidiary" does not include Luzerne or Wilkes-Barre.

         "Cross Escrow Accounts" shall have the meaning ascribed to such term in
the Master Agreement.

         "Event of Default" means any of the Events of Default described in
Section 7.01 of this Agreement.

         "Existing Loan Agreement" means the Loan Agreement dated as of April
20, 2000, as amended from time to time, by and between the Borrowers and the
Lender.

         "Expiration Date" means December 31, 2004, unless extended in writing
by the Lender in its sole and absolute discretion.

         "Fee Letter" means the fee letter dated the Closing Date among the
Borrowers and the Lender.

         "Incorporated Affirmative Covenants" has the meaning assigned to that
term in Section 5.01.

         "Incorporated Negative Covenants" has the meaning assigned to that term
in Section 6.01.

         "Incorporated Representations and Warranties" has the meaning assigned
to that term in Section 3.01.

         "Law" means any law (including common law), constitution, statute,
treaty, regulation, rule, ordinance, order, injunction, writ, decree or award of
any Official Body.

         "Lender" means The Provident Bank, a bank chartered under the laws of
the State of Ohio, having an office at FreeMarkets Center, 210 Sixth Avenue,
Suite 360, Pittsburgh, Pennsylvania 15222.

         "Loan Document" or "Loan Documents" mean, singularly or collectively as
the context may require, (i) this Agreement, (ii) the Notes, (iii) the Account
Security Agreement (Subordinated), (iv) the Fee Letter, (v) the Subordination
Agreement, and any and all other documents, instruments, certificates and
agreements executed and delivered in connection with this Agreement, as any of
them may be amended, modified, extended or supplemented from time to time.

                                       3
<PAGE>

         "Loan" or "Loans" means the Revolving Credit Loans and any other loan
or loans made by the Lender to the Borrowers under this Agreement.

         "Loan Request" shall have the meaning ascribed to that term in Section
2.01(d).

         "Mortgages" means the Mortgages granted by Borrowers pursuant to the
Existing Loan Agreement.

         "Note" or "Notes" mean the Revolving Credit Note and any other note or
notes of the Borrowers executed and delivered pursuant to this Agreement,
together with all extensions, renewals, refinancings or refundings in whole or
in part.

         "Office", when used in connection with the Lender, means its office
located at FreeMarkets Center, 210 Sixth Avenue, Suite 360, Pittsburgh,
Pennsylvania 15222 or such other office of the Lender as the Lender may
designate in writing from time to time.

         "Official Body" means any government or political subdivision or any
agency, authority, bureau, central bank, commission, department or
instrumentality of either, or any court, tribunal, grand jury or arbitrator
having proper jurisdiction, in each case whether foreign or domestic.

         "Potential Default" means any event or condition that with notice or
the passage of time would constitute an Event of Default.

         "Prime Rate" means the rate of interest publicly announced from time to
time by the Lender as its prime lending rate, which may not be the lowest rate
of interest available at the Lender.

         "Revolving Credit Commitment" shall mean, at any time, Lender's
revolving credit commitment hereinafter as set forth in Section 2.01(a) of this
Agreement.

         "Revolving Credit Loan" or "Loans" shall mean the Revolving Credit Loan
or Loans, as the context may require, made by Lender to Borrowers from time to
time pursuant to Section 2.01 of this Agreement.

         "Revolving Credit Note" means the Revolving Credit Note of the
Borrowers in the form of Exhibit "A" to this Agreement together with all
extensions, renewals, refinancings or refundings in whole or in part.

         "Security Agreement" means the Security Agreement dated as of April 20,
2000, as amended and restated by that certain Amended and Restated Security
Agreement dated as of December 21, 2001, and as amended, modified or
supplemented from time to time, between the Borrowers and the Lender.

         "Subordination Agreement" means, collectively, (i) the Subordination
Agreement dated as of the date hereof, and as further amended, modified or
supplemented from time to time, by and between the Lender and WAMU, (ii) the
Subordination Agreement dated as of the date

                                       4
<PAGE>

hereof, and as further amended, modified or supplemented from time to time, by
and between the Lender and LaSalle, as Indenture Trustee pursuant to that
certain Indenture dated as of November 1, 2000, and (iii) the Subordination
Agreement dated as of the date hereof, and as further amended, modified or
supplemented from time to time, by and between the Lender and LaSalle, as
Indenture Trustee pursuant to that certain Indenture dated as of April 1, 1999.

         "Subsidiary" of a Borrower at any time means any corporation of which a
majority of the outstanding capital stock entitled to vote for the election of
directors is at such time owned by a Borrower and/or one or more Subsidiaries.

         "Transaction Documents" shall have the meaning ascribed to such term in
the Master Agreement.

         "Uni-Marts" means Uni-Marts, Inc., a Delaware corporation, having its
principal office at 477 East Beaver Avenue, State College, Pennsylvania
16801-5690.

         1.02     Construction. Unless the context of this Agreement otherwise
clearly requires, the following rules of construction shall apply to this
Agreement and each of the other Loan Documents:

                  (a)      references to the plural include the singular, the
plural, the part and the whole; "or" has the inclusive meaning represented by
the phrase "and/or," and "including" has the meaning represented by the phrase
"including without limitation";

                  (b)      the words "hereof," "herein," "hereunder," "hereto"
and similar terms in this Agreement or any other Loan Document refer to this
Agreement or such other Loan Document as a whole and not to any particular
provision of this Agreement or such other Loan Document;

                  (c)      the section and other headings contained in this
Agreement or such other Loan Document and the Table of Contents (if any),
preceding this Agreement or such other Loan Document are for reference purposes
only and shall not control or affect the construction of this Agreement or such
other Loan Document or the interpretation thereof in any respect;

                  (d)      article, section, subsection, clause, schedule and
exhibit references are to this Agreement or other Loan Document, as the case may
be, unless otherwise specified; and

                  (e)      reference to any agreement (including this Agreement
and any other Loan Document together with the schedules and exhibits hereto or
thereto), document or instrument means such agreement, document or instrument as
amended, modified, replaced, substituted for, superseded or restated.

                                       5
<PAGE>

                                   ARTICLE II

                              THE REVOLVING CREDIT

         2.01     Revolving Credit Loans.

                  (a)      Revolving Credit Loans. Subject to the terms and
conditions and relying upon the representations and warranties set forth in this
Agreement and the other Loan Documents, the Lender agrees (such agreement being
herein called the "Revolving Credit Commitment") to make Revolving Credit Loans
to the Borrowers at any time or from time to time on or after the Closing Date
and to and including the day immediately preceding the Expiration Date in an
aggregate principal amount not exceeding at any one time outstanding $4,000,000.
If at any time the sum of all Revolving Credit Loans outstanding exceeds
$4,000,000, the Borrowers shall immediately repay to the Lender, in funds
immediately available, the amount of such excess together with all accrued
interest on the amount of such repayment. Notwithstanding the foregoing, the
cumulative sum of Revolving Credit Loan under this Agreement and the Revolving
Credit Loans under the Existing Loan Agreement shall not exceed $15,000,000
outstanding at any time. If at any time the cumulative sum of Revolving Credit
Loans under this Agreement and the Revolving Credit Loans under the Existing
Loan Agreement exceeds $15,000,000, the Borrowers shall immediately repay to the
Lender, in funds immediately available, the amount of such excess together with
all accrued interest on the amount of such repayment. Within the limits of time
and amount set forth in this Section 2.01, and subject to the provisions of this
Agreement, including, without limitation, the Lender's right to demand repayment
of the Revolving Credit Loans upon the occurrence of an Event of Default, the
Borrowers may borrow, repay and reborrow under this Section 2.01. The Borrowers
shall use the proceeds of the Revolving Credit Loans to either fund its own
Borrower Collateral Unit Shortfalls or make capital contributions to Luzerne or
Wilkes-Barre for Luzerne or Wilkes-Barre, as the case may be, to use and fund
its own Borrower Collateral Unit Shortfalls pursuant to the terms and conditions
of the Master Agreement.

                  (b)      Mandatory Principal Payments. Upon the closing of the
sale of an Underperforming Property pursuant to the Master Agreement, Borrowers
shall make a mandatory payment of the outstanding Revolving Credit Loans
hereunder (and only hereunder) in an amount equal to Borrower Collateral Unit
Excess Proceeds, if any, as directed by and in accordance with the terms of the
Master Agreement, and the Revolving Credit Commitment shall be permanently
reduced by such amount, and the portion of the Revolving Credit Commitment so
terminated shall no longer be available for borrowing.

                  (c)      Revolving Credit Note. The obligations of the
Borrowers to repay the unpaid principal amount of the Revolving Credit Loans
made to the Borrowers by the Lender and to pay interest on the unpaid principal
amount will be evidenced in part by the Revolving Credit Note of the Borrowers
dated the Closing Date, in substantially the form attached as Exhibit "A" to
this Agreement, with the blanks appropriately filled. The executed Revolving
Credit Note will be delivered by the Borrowers to the Lender on the Closing
Date.

                                       6
<PAGE>

                  (d)      Making of Revolving Credit Loans. On any Business Day
when Borrowers desire that the Lender make a Revolving Credit Loan, Uni-Marts
shall provide notice to the Lender by completing, executing and delivering to
the Lender, by 12:00 noon New York time, a completed Loan Request, in the form
attached as Exhibit "B" to this Agreement. Subject to the terms and conditions
of this Agreement, upon the Lender's review, approval and processing of the Loan
Request and any other information requested by the Lender, the Lender shall make
the proceeds of the Revolving Credit Loan available to the Borrowers at the
Lender's Office, on the date specified in the Loan Request in immediately
available funds, provided that Uni-Marts shall have delivered to the Lender the
Loan Request and any other information requested by the Lender no later than
12:00 noon prevailing New York time on such specified date.

         2.02     Interest Rates.

                  (a)      Revolving Credit Loans. The unpaid principal amount
of the Revolving Credit Loans shall bear interest for each day until due at a
rate per annum (computed on the basis of a year of 360 days and actual days
elapsed) for each day equal to the Prime Rate for such day plus one percent
(1.0%).

                  (b)      Interest After Default. After the principal amount of
any part of the Loans shall have become due (at maturity, by acceleration or
otherwise), or upon the occurrence of one or more of the Events of Default (and
for so long as any such Event of Default shall continue), as compensation to the
Lender for the increased cost of administering the Loans, the Loans will bear
interest for each day until paid (before and after judgment) at a rate per year
(computed for the actual number of days elapsed on the basis of a year of 360
days) which will be three percent (3.0%) above the then Prime Rate, such
interest rate to change automatically from time to time effective as of the
effective date of each change in the Prime Rate.

                  (c)      Usury. In the event the rates of interest provided
for in subsections (a) and (b) above or either of them are finally determined by
any Official Body to exceed the maximum rate of interest permitted by applicable
usury or similar Laws, their or its application will be suspended and there will
be charged instead the maximum rate of interest permitted by such Laws.

         2.03     Interest Payment Dates. Interest on the Loans will be due and
payable on the first day of each month in arrears. Interest will be deducted
from a Borrower's demand or deposit accounts with the Lender on the due date;
provided, no such deduction shall be made from the Cross Escrow Accounts, or any
of them. After maturity of any part of the Loans (at maturity, by acceleration
or otherwise), interest on such part of the Loans will be due and payable on
demand.

         2.04     Payments. All payments to be made in respect of principal,
interest, fees or other amounts due from the Borrowers under this Agreement or
under the Notes are payable at 12:00 noon, New York time, on the day when due,
without presentment, demand, protest or notice of any kind, all of which are
expressly waived, and an action for the payments will accrue immediately. All
such payments must be made to the Lender at its Office in U.S. dollars and in
funds immediately available at such Office, without setoff, counterclaim or
other deduction of

                                       7
<PAGE>

any nature. All such payments shall be applied at the option of the Lender to
accrued and unpaid interest, outstanding principal and other sums due under this
Agreement in such order as the Lender, in its sole discretion, shall elect.

         2.05     Fees. The Borrowers shall pay the fees set forth in the Fee
Letter in the manner and at the times required by the Fee Letter.

         2.06     Indemnities.

                  (a)      General Indemnities. The Borrowers will indemnify the
Lender against any loss or expense which the Lender sustains or incurs as a
consequence of an Event of Default, including, without limitation, any failure
of the Borrowers to pay when due (at maturity, by acceleration or otherwise) any
principal, interest, fee or any other amount due under this Agreement, or the
Notes or the other Loan Documents. If the Lender sustains or incurs any such
loss or expense it will from time to time notify the Borrowers in writing of the
amount determined in good faith by the Lender (which determination will be
conclusive) to be necessary to indemnify the Lender for the loss or expense.
Such amount will be due and payable by the Borrowers to the Lender within ten
(10) days after presentation by the Lender of a statement setting forth an
explanation in reasonable detail of and the Lender's calculation of such amount,
which statement shall be conclusively deemed correct absent manifest error. Any
amount payable to the Lender under this Section 2.06 will bear interest at the
Prime Rate plus three percent (3.0%) per year (computed for the actual number of
days elapsed on the basis of a year of 360 days) from the due date until paid
(before and after judgment).

                  (b)      Loss of Margin. In the event that any law,
regulation, treaty or official directive or the interpretation or application
thereof by any Official Body or the compliance with any guideline or request of
any central bank or other Official Body (whether or not having the force of
law):

                           (i)      subjects the Lender to any tax with respect
                  to any amounts payable under this Agreement, the Notes or the
                  other Loan Documents by the Borrowers or otherwise with
                  respect to the transactions contemplated under this Agreement,
                  the Notes or the other Loan Documents (except for taxes on the
                  overall net income of the Lender imposed by the United States
                  of America, any foreign government or any political
                  subdivision of any of them), or

                           (ii)     imposes, modifies or deems applicable any
                  deposit insurance, reserve, special deposit, capital
                  maintenance or similar requirement against assets held by, or
                  deposits in or for the account of, or loans or advances or
                  commitment to make loans or advances by, or letters of credit
                  issued or commitment to issue letters of credit by, the
                  Lender, or

                           (iii)    imposes upon the Lender any other condition
                  with respect to the Loans or the commitment to make Loans made
                  under this Agreement,

and the result of any of the foregoing is to increase the costs of the Lender,
reduce the income receivable by or return on equity of the Lender or impose any
expense upon the Lender with

                                       8
<PAGE>

respect to any Loans or commitments to make Loans under this Agreement, the
Lender shall so notify the Borrowers in writing. The Borrowers agree to pay the
Lender the amount of such increase in cost, reduction in income, reduced return
on equity or additional expense within ten (10) days after presentation by the
Lender of a statement concerning such increase in cost, reduction in income,
reduced return on equity or additional expense. Such statement shall set forth a
brief explanation of the amount and the Lender's calculation of the amount (in
determining such amount the Lender may use any reasonable averaging and
attribution methods), which statement shall be conclusively deemed correct
absent manifest error. If the amount set forth in such statement is not paid
within ten (10) days after such presentation of such statement, interest will be
payable on the unpaid amount at the Prime Rate plus three percent (3.0%) per
year (computed for the actual number of days elapsed on the basis of a year of
360 days) from the due date until paid (before and after judgment).

         2.07     Loan Account. The Lender will open and maintain on its books a
loan account (the "Loan Account") with respect to Loans made, repayments,
prepayments, the computation and payment of interest and fees and the
computation and final payment of all other amounts due and sums paid to the
Lender under this Agreement. Except in the case of manifest error in
computation, the Loan Account will be conclusive and binding on the Borrowers as
to the amount at any time due to the Lender from the Borrowers under this
Agreement or the Notes.

         2.08     Termination.

                  (a)      The credit facilities made available to the Borrowers
under this Agreement (the "Credit Facilities") are terminable by the Lender at
its discretion upon the occurrence of an Event of Default under this Agreement.

                  (b)      The Credit Facilities, if not sooner terminated, will
automatically terminate on the Expiration Date, unless extended in writing by
the Lender in its sole and absolute discretion.

                  (c)      The Borrowers may prepay the Credit Facilities in
full and terminate the Credit Facilities made available to the Borrowers under
this Agreement at any time without premium or penalty, provided that any such
payment in full shall be accompanied by payment of all accrued interest, costs,
fees and expenses accrued to the date of prepayment. In the event the Credit
Facilities are terminated for any reason, the outstanding balance of the Loans,
together with any accrued and unpaid interest thereon and any other sums due
pursuant to the terms of this Agreement, the Notes, the other Loan Documents and
any other credit accommodation made by the Lender to the Borrowers shall be due
and payable immediately.

         2.09     Security. The Security Agreement, the Mortgages and the
Account Security Agreement (Subordinated) shall secure repayment of the Loans
and the payment and performance of all obligations of Borrowers to Lender under
this Agreement, the Notes and the other Loan Documents.

                                       9
<PAGE>

                                   ARTICLE III

                         REPRESENTATIONS AND WARRANTIES

         The Borrowers jointly and severally represent and warrant to the Lender
with respect to each Borrower that:

         3.01     Representations and Warranties from Existing Loan Agreement.
(a) Each of the representations and warranties contained in Article III of the
Existing Loan Agreement (including the appropriate definitions in Section 1.01
of the Existing Loan Agreement) is incorporated in this Agreement by reference
(the "Incorporated Representations and Warranties") and is deemed to be made as
of the Closing Date; except that for the purpose of the foregoing, all
references to "Loan Documents" shall be deemed to be references to the Loan
Documents, collectively, hereunder; and all references to the "Closing Date"
shall be deemed to be references to the Closing Date herein.

                  (b)      Amendments or other modifications to any of the
representations and warranties in the Existing Loan Agreement subsequent to the
Closing Date shall automatically be incorporated herein as amended or modified
Incorporated Representations and Warranties. If any amendment or other
modification to any of the representations and warranties in the Existing Loan
Agreement is given retroactive effect, then the amendment or other modification
to the Incorporated Representations and Warranties similarly shall have a
retroactive effect.

         3.02     Authority and Authorization. The Borrower has corporate power
and authority to execute and deliver this Agreement, the Notes and the other
Loan Documents executed by the Borrower, to make the borrowings provided for in
this Agreement, to execute and deliver the Notes in evidence of such borrowings
and to perform its obligations under this Agreement, the Notes and the other
Loan Documents. All such action has been duly and validly authorized by all
necessary corporate proceedings on the part of the Borrower.

         3.03     Execution and Binding Effect. This Agreement, the Notes and
the other Loan Documents have been duly and validly executed and delivered by
the Borrower and each such document or agreement constitutes a legal, valid and
binding obligation of the Borrower enforceable in accordance with its terms,
except to the extent that the enforceability thereof may be limited by
applicable bankruptcy, insolvency, reorganization, or other similar laws
affecting creditors' rights generally and by general equitable principles
(regardless if whether the issue of enforceability is considered in a proceeding
in equity or at law).

         3.04     Absence of Conflicts. Neither the execution and delivery of
this Agreement, the Notes or the other Loan Documents, nor the consummation of
the transactions contemplated in any of them, nor the performance of or
compliance with their terms and conditions will (a) violate any applicable Law,
(b) conflict with or result in a breach of or a default under the articles of
incorporation or by-laws of the Borrower or any agreement or instrument to which
the Borrower is a party or by which it or any of its properties (now owned or
acquired in the future) may be subject or bound or (c) result in the creation or
imposition of any Lien upon any property

                                       10
<PAGE>

(now owned or acquired in the future) of the Borrower, other than Liens granted
in favor of the Lender.

         3.05     Authorizations and Filings. No authorization, consent,
approval, license, exemption or other action by, and no registration,
qualification, designation, declaration or filing with, any Official Body is or
will be necessary or advisable in connection with the execution and delivery of
this Agreement, the Notes or the other Loan Documents, the consummation of the
transactions contemplated in any of them, or the performance of or compliance
with the terms and conditions of this Agreement, the Notes or the other Loan
Documents.

         3.06     Proceeds. The Borrowers will use the proceeds of the Revolving
Credit Loans to either fund its own Borrower Collateral Unit Shortfalls or make
capital contributions to Luzerne or Wilkes-Barre for Luzerne or Wilkes-Barre, as
the case may be, to use and fund its own Borrower Collateral Unit Shortfalls
pursuant to the terms and conditions of the Master Agreement.

         3.07     Margin Stock. The Borrower will make no borrowing under this
Agreement for the purpose of buying or carrying any "margin stock", as such term
is used in Regulation U and related regulations of the Board of Governors of the
Federal Reserve System, as amended from time to time. The Borrower does not own
any "margin stock". The Borrower is not engaged in the business of extending
credit to others for such purpose, and no part of the proceeds of any borrowing
under this Agreement will be used to purchase or carry any "margin stock" or to
extend credit to others for the purpose of purchasing or carrying any "margin
stock".

         3.08     No Event of Default; Compliance with Agreements. No event has
occurred and is continuing and no condition exists which constitutes an Event of
Default or Potential Default. The Borrower is not (i) in violation of any term
of any charter instrument or bylaw or (ii) in default under any agreement, lease
or instrument to which the Borrower is a party or by which it or any of its
properties (now owned or acquired in the future) may be subject or bound, except
to the extent any such default would not have a material and adverse affect on
the assets, business, operations or financial condition of the Borrower or the
ability of the Borrower to perform its obligations under this Agreement, the
Notes and the other Loan Documents.

         3.09     Accurate and Complete Disclosure. No representation or
warranty made by the Borrower under this Agreement, the Notes or the other Loan
Documents and no statement made by the Borrower in any certificate, report,
exhibit or document furnished by the Borrower to the Lender pursuant to or in
connection with this Agreement is false or misleading in any material respect
(including by omission of material information necessary to make such
representation, warranty or statement not misleading).

         3.10     Security Interest. The security interests in the collateral
granted to the Lender pursuant to the Security Agreement and the Mortgages will
secure all of the obligations of Borrowers pursuant to this Agreement, superior
and prior to the rights of all third parties existing on the date of this
Agreement or arising after the date of this Agreement whether by lien or
otherwise, to the full extent provided by Law. All such action as is necessary
or advisable to establish such rights of the Lender has been taken or will be
taken at or prior to the time required

                                       11
<PAGE>

for such purpose and there will be upon execution and delivery of the Loan
Documents no necessity of any further action in order to preserve, protect and
continue such rights except the filing of continuation statements with respect
to such financing statements within six months prior to each five year
anniversary of the filing of such financing statements and continued possession
by the Lender of the collateral delivered to it pursuant to the Security
Agreement and the Mortgages. All filing fees and other expenses in connection
with each such action shall be paid by the Borrower and the Lender shall be
reimbursed by the Borrower for any such fees and expenses incurred by the
Lender.

         3.11     Transaction Documents. The Transaction Documents have been
duly and validly executed and delivered by the parties thereto and constitute
the legal, valid and binding obligations of the parties thereto, enforceable
against them in accordance with their respective terms, except to the extent
that enforceability may be limited by bankruptcy, insolvency, reorganization,
moratorium or other similar laws affecting the enforceability of creditors'
rights generally or by laws or judicial decisions limiting the right of specific
performance. The Borrowers have delivered to the Lender a true and correct copy
of the Transaction Documents and any amendments, waivers and other documents
executed in connection therewith (including all exhibits and schedules to such
documents), and there has been no other amendment, waiver or modification of the
Transaction Documents. All representations and warranties of Uni-Marts, Luzerne
and Wilkes-Barre contained in the Transaction Documents are true and correct in
all material respects. There exists no default, nor any circumstance which,
after notice or lapse of time or both would constitute a default, nor any claim
of default, on the part of any party to the Transaction Documents and there
exists no lien, set-off, claim or other impairment of the validity or
enforceability of such documents. The Transaction Documents constitute the
entire agreement among the parties thereto and there are no other agreements
with respect to such matters.

                                   ARTICLE IV

                              CONDITIONS OF LENDING

         4.01     Initial Loans. The obligation of the Lender to make any Loan
on the Closing Date is subject to the accuracy as of the Closing Date of the
representations and warranties contained in this Agreement and the other Loan
Documents, to the performance by the Borrowers of the obligations to be
performed under this Agreement and under the other Loan Documents on or before
the Closing Date and to the satisfaction of the following further conditions:

                  (a)      Representations and Warranties; Events of Default and
Potential Defaults. The representations and warranties contained in Article III
shall be true and correct on and as of the date of each Loan with the same
effect as though made on and as of each such date. On the Closing Date, the
Borrowers shall have delivered a Certificate to that effect signed by the
President, Chairman or Chief Financial Officer of Uni-Marts. On the date of each
Loan, no Event of Default and no Potential Default shall have occurred and be
continuing or exist or shall occur or exist after giving effect to the Loan to
be made on such date. On the Closing Date, the Borrowers shall have delivered a
Certificate to that effect signed by the President, Chairman or Chief Financial
Officer of Uni-Marts.

                                       12
<PAGE>

                  (b)      Proceedings and Incumbency. On the Closing Date, the
Borrowers shall have delivered to the Lender a certificate, in form and
substance satisfactory to the Lender, dated the Closing Date and signed on
behalf of the Borrowers by the Secretary of the Borrowers, certifying as to (i)
true copies of the Articles of Incorporation and bylaws of the Borrowers and any
shareholders agreement concerning the Borrowers, all as in effect on such date,
(ii) true copies of all corporate action taken by the Borrowers relative to this
Agreement, the Notes and the other Loan Documents, including but not limited to
that described in Section 3.03 of this Agreement, and (iii) the names, true
signatures and incumbency of the officers of the Borrowers authorized to execute
and deliver this Agreement, the Notes and the other Loan Documents. The Lender
may conclusively rely on such certificate unless and until a later certificate
revising the prior certificate has been furnished to the Lender.

                  (c)      Opinion of Counsel. On the Closing Date, there shall
have been delivered to the Lender a written opinion, dated the Closing Date, of
Saul Ewing LLP, counsel for the Borrowers, in substantially the form attached as
Exhibit "C" to this Agreement.

                  (d)      Agreement and Note. On the Closing Date, this
Agreement and the Revolving Credit Note, satisfactory in terms, form and
substance to the Lender, shall have been executed and delivered by the Borrowers
to the Lender.

                  (e)      Account Security Agreement (Subordinated). On the
Closing Date, the Account Security Agreement (Subordinated), satisfactory in
terms, form and substance to the Lender, shall have been executed and delivered
by Uni-Marts to the Lender.

                  (f)      Fee Letter. On the Closing Date, the Fee Letter,
satisfactory in terms, form and substance to Lender, shall have been executed
and delivered by Borrowers to the Lender.

                  (g)      Subordination Agreement. On the Closing Date, the
Subordination Agreement, satisfactory in terms, form and substance to Lender,
shall have been executed and delivered by the Lender and WAMU and LaSalle, as
applicable, and shall be in effect.

                  (h)      Other Documents and Conditions. On or before the
Closing Date, the following documents and conditions shall have been delivered
or satisfied by or on behalf of the Borrowers to the Lender:

                           (i)      Good Standing and Tax Lien Certificates.
                  Good Standing Certificate of the Department of Commonwealth of
                  Pennsylvania certifying to the good standing and corporate
                  status of the Borrowers, good standing/foreign qualification
                  certificates from other jurisdictions in which the Borrowers
                  are qualified to do business and tax lien certificates of the
                  Borrowers from each jurisdiction in which the Borrowers are
                  qualified to do business.

                           (ii)     Transaction Documents. The transactions
                  contemplated by the Master Agreement and the other Transaction
                  Documents shall be consummated simultaneously with the closing
                  of the Loans in accordance with the terms and conditions of
                  the Master Agreement as heretofore approved by Lender, without

                                       13
<PAGE>

                  any amendment or waiver by Uni-Marts, Luzerne or Wilkes-Barre
                  not consented to by Lender. Lender shall have received true
                  and correct copies of each of the Transaction Documents
                  executed and delivered on the Closing Date, including without
                  limitation, copies of all opinions delivered in connection
                  with the closing of the Transaction Documents.

                           (iii)    Other Documents and Conditions. Such other
                  documents and conditions as may be required to be submitted to
                  the Lender by the terms of this Agreement or of any Loan
                  Document.

                  (i)      Details, Proceedings and Documents. All legal details
and proceedings in connection with the transactions contemplated by this
Agreement shall be satisfactory to the Lender and the Lender shall have received
all such counterpart originals or certified or other copies of such documents
and proceedings in connection with such transactions, in form and substance
satisfactory to the Lender, as the Lender may from time to time request.

                  (j)      Fees and Expenses. The Borrowers shall have paid all
fees and charges as required for the Closing and relating to the Closing,
including reasonable legal fees, closing costs, filing and notary fees, and any
other similar matters pertinent to the Closing.

         4.02     Each Additional Loan. At the time of making any Loans other
than Loans made on the Closing Date and after giving effect to the proposed
borrowings: the representations and warranties of the Borrowers contained in
Article III of this Agreement shall be true on and as of the date of such
additional Loan with the same effect as though such representations and
warranties had been made on and as of such date (except representations and
warranties which expressly relate solely to an earlier date or time, which
representations and warranties shall be true and correct on and as of the
specific dates or times referred to therein) and the Borrowers shall have
performed and complied with all covenants and conditions of this Agreement; no
Event of Default or Potential Default shall have occurred and be continuing or
shall exist; the making of the Loans shall not contravene any Law applicable to
the Borrowers or Lender; and the Borrowers shall have delivered to the Lender a
duly executed and completed Loan Request.

                                    ARTICLE V

                              AFFIRMATIVE COVENANTS

         Each Borrower covenants to the Lender as follows:

         5.01     Incorporated Affirmative Covenants. (a) The affirmative
covenants in Article V (Affirmative Covenants) of the Existing Loan Agreement
(including the appropriate definitions in Section 1.01 of the Existing Loan
Agreement) are incorporated herein by reference (the "Incorporated Affirmative
Covenants"); except that for purposes of the foregoing, all references therein
to a "Potential Default" or an "Event of Default" shall be deemed to be
references to a Potential Default or an Event of Default hereunder; all
references therein to "this Agreement" shall be deemed to be references to this
Agreement; and all references therein to the

                                       14
<PAGE>

"Loan Documents" shall be deemed to be references to the Loan Documents,
collectively, hereunder.

                  (b)      Amendments or other modifications to any of the
affirmative covenants in the Existing Loan Agreement subsequent to the Closing
Date shall automatically be incorporated herein as amended or modified
Incorporated Affirmative Covenants. If any amendment or other modification to
any of the affirmative covenants in the Existing Loan Agreement is given
retroactive effect, then the Incorporated Affirmative Covenants similarly shall
have a retroactive effect.

         5.02     Use of Proceeds. The Borrowers will use the proceeds of the
Revolving Credit Loans to either fund its own Borrower Collateral Unit
Shortfalls or make capital contributions to Luzerne or Wilkes-Barre for Luzerne
or Wilkes-Barre, as the case may be, to use and fund its own Borrower Collateral
Unit Shortfalls pursuant to the terms and conditions of the Master Agreement.

         5.03     Further Assurances. The Borrowers, at their own cost and
expense, will cause to be promptly and duly taken, executed, acknowledged and
delivered all such further acts, documents and assurances as the Lender may from
time to time request in order more effectively to carry out the intent and
purposes of this Agreement and the transactions contemplated by this Agreement.

                                   ARTICLE VI

                               NEGATIVE COVENANTS

         The Borrowers jointly and severally covenant to the Lender as follows:

         6.01     Incorporated Negative Covenants. (a) The negative covenants in
Article VI of the Existing Loan Agreement (including the appropriate definitions
in Section 1.01 of the Existing Loan Agreement) in effect on the Closing Date
are incorporated herein by reference (the "Incorporated Negative Covenants");
except that for purposes of the foregoing, all references therein to a
"Potential Default" or an "Event of Default" shall be deemed to be references to
a Potential Default or an Event of Default hereunder; all references therein to
"this Agreement" shall be deemed to be references to this Agreement; and all
references therein to the "Loan Documents" shall be deemed to be references to
the Loan Documents, collectively, hereunder.

                  (b)      Amendments or other modifications to any of the
negative covenants in the Credit Agreement subsequent to the Closing Date shall
automatically be incorporated herein as amended or modified Incorporated
Negative Covenants. If any amendment or other modification to any of the
negative covenants in the Credit Agreement is given retroactive effect, then the
Incorporated Negative Covenants similarly shall have a retroactive effect.

         6.02     Changes in Transaction Documents. Borrowers shall not amend or
modify any provision of any Transaction Document without providing at least
fifteen (15) calendar days' prior written notice, and obtaining the prior
written consent of Lender.

                                       15
<PAGE>

                                   ARTICLE VII

                                    DEFAULTS

         7.01     Events of Default. An Event of Default means the occurrence or
existence of one or more of the following events or conditions (whatever the
reason for such Event of Default and whether voluntary, involuntary or effected
by operation of Law):

                  (a)      The Borrowers shall fail to pay principal on the
Notes when due; or

                  (b)      The Borrowers shall fail to pay interest on the Loans
or any fees payable pursuant to Article II of this Agreement or the Fee Letter
when due and such failure continues for a period of three (3) Business Days; or

                  (c)      The Borrowers shall fail to pay any other fee, or
other amount payable pursuant to this Agreement, the Notes or any of the other
Loan Documents when due and such failure continues for a period of three (3)
Business Days; or

                  (d)      Any representation or warranty made by the Borrowers
under this Agreement, the Notes or any of the other Loan Documents or any
statement made by the Borrowers in any financial statement, certificate, report,
exhibit or document furnished by the Borrowers, as the case may be, to the
Lender pursuant to this Agreement or the other Loan Documents shall prove to
have been false or misleading in any material respect as of the time when made;
or

                  (f)      The Borrowers shall be in default in the performance
or observance of Section 5.02 of this Agreement and such default shall continue
for a period of fifteen (15) Business Days after the Lender shall have given
notice to the Borrowers of such default; provided, however, that so long as the
default is capable of being cured and the Borrowers are diligently pursuing the
same, then Borrowers shall have an additional twenty-five (25) Business Days to
correct such default, or

                  (g)      The Borrowers shall be in default in the performance
or observance of any other covenant, agreement or duty under this Agreement, the
Notes, the other Loan Documents or any other debt, liability or obligation to
Lender beyond any applicable grace or cure period expressly provided therein; or

                  (h)      Uni-Marts, Luzerne or Wilkes-Barre shall be in
default in the performance or observance of any provision of any Transaction
Document beyond any applicable grace or cure period expressly provided therein;
or

                  (i)      A Potential Default of an Event of Default shall have
occurred and be continuing under the Existing Loan Agreement, all of which are
incorporated herein by reference (including the appropriate definitions in
Section 1.01 of the Existing Loan Agreement).

                                       16
<PAGE>

         7.02     Consequences of an Event of Default.

                  (a)      If an Event of Default specified in subsections (a)
through (h) of Section 7.01 of this Agreement and subsections (a) through (n) of
Section 7.01 of the Existing Loan Agreement occurs and continues or exists, the
Lender will be under no further obligation to make Loans and may demand the
unpaid principal amount of the Notes, interest accrued on the unpaid principal
amount and all other amounts owing by the Borrowers under this Agreement, the
Notes and the other Loan Documents to be immediately due and payable without
presentment, demand, protest or further notice of any kind, all of which are
expressly waived, and an action for any amounts due shall accrue immediately.

                  (b)      If an Event of Default specified in subsections (o)
or (p) of Section 7.01 of the Existing Loan Agreement occurs and continues or
exists, the Lender will be under no further obligation to make Loans and the
unpaid principal amount of the Notes, interest accrued on the unpaid principal
amount and all other amounts owing by the Borrowers under this Agreement, the
Notes and the other Loan Documents shall become immediately due and payable
without presentment, demand, protest or notice of any kind, all of which are
expressly waived, and an action for any amounts due shall accrue immediately.

                  (c)      If an Event of Default occurs and continues or
exists, the Lender may, without notice to the Borrowers increase the rate of
interest applicable to the Loans to the rate of interest specified in subsection
(b) of Section 2.02 of this Agreement.

                  (d)      If an Event of Default occurs and continues or
exists, and whether or not the Lender shall have accelerated the maturity of
Loans pursuant to any of the foregoing provisions of this Section 7.02, the
Lender, if owed any amount with respect to the Notes, may proceed to protect and
enforce its rights by suit in equity, action at law and/or other appropriate
proceeding, whether for the specific performance of any covenant or agreement
contained in this Agreement or the Notes, including as permitted by applicable
Law the obtaining of the ex parte appointment of a receiver, and, if such amount
shall have become due, by declaration or otherwise, proceed to enforce the
payment thereof or any other legal or equitable right of the Lender.

                  (e)      If an Event of Default occurs and continues or
exists, the Lender may exercise each and every right and remedy granted to the
Lender under the Loan Documents and under any applicable Law.

         7.03     Set-Off. If the unpaid principal amount of the Notes, interest
accrued on the unpaid principal amount or other amount owing by the Borrowers
under this Agreement, the Notes or the other Loan Documents shall have become
due and payable (at maturity, by acceleration or otherwise), the Lender and the
holder of any participation in any Loan will each have the right, in addition to
all other rights and remedies available to it, without notice to the Borrowers,
to set-off against and to appropriate and apply to such due and payable amounts
any debt owing to, and any other funds held in any manner for the account of,
the Borrowers by the Lender or by such holder including, without limitation, all
funds in all deposit accounts (whether time or demand, general or special,
provisionally credited or finally credited, or otherwise but

                                       17
<PAGE>

excepting the Cross Escrow Accounts) now or in the future maintained by the
Borrowers with the Lender or such holder. The Borrowers consent to and confirm
the foregoing arrangements and confirm the Lender's rights and such holder's
rights of banker's lien and set-off, except with respect to the Cross Escrow
Accounts. Nothing in this Agreement will be deemed a waiver or prohibition of or
restriction on the Lender's rights or any such holder's rights of banker's lien
or set-off except as otherwise provided in this Section.

                                  ARTICLE VIII

                                  MISCELLANEOUS

         8.01     Holidays. Except as otherwise provided in this Agreement,
whenever any payment or action to be made or taken under this Agreement, or
under the Notes or under any of the other Loan Documents is stated to be due on
a day which is not a Business Day, such payment or action will be made or taken
on the next following Business Day and such extension of time will be included
in computing interest or fees, if any, in connection with such payment or
action.

         8.02     Records. The unpaid principal amount of the Notes, the unpaid
interest accrued thereon, the interest rate or rates applicable to such unpaid
principal amount and the duration of such applicability shall at all times be
ascertained from the records of the Lender, which shall be conclusive absent
manifest error.

         8.03     Amendments and Waivers. The Lender and the Borrowers may from
time to time enter into agreements amending, modifying or supplementing this
Agreement, the Notes or any other Loan Document or changing the rights of the
Lender or of the Borrowers under this Agreement, under the Notes or under any
other Loan Document and the Lender may from time to time grant waivers or
consents to a departure from the due performance of the obligations of the
Borrowers under this Agreement, under the Notes or under any other Loan
Document. Any such agreement, waiver or consent must be in writing and will be
effective only to the extent specifically set forth in such writing. In the case
of any such waiver or consent relating to any provision of this Agreement, any
Event of Default or Potential Default so waived or consented to will be deemed
to be cured and not continuing, but no such waiver or consent will extend to any
other or subsequent Event of Default or Potential Default or impair any right
consequent to any other or subsequent Event of Default or Potential Default.

         8.04     No Implied Waiver; Cumulative Remedies. No course of dealing
and no delay or failure of the Lender in exercising any right, power or
privilege under this Agreement, the Notes or any other Loan Document will affect
any other or future exercise of any such right, power or privilege or exercise
of any other right, power or privilege except as and to the extent that the
assertion of any such right, power or privilege shall be barred by an applicable
statute of limitations; nor shall any single or partial exercise of any such
right, power or privilege or any abandonment or discontinuance of steps to
enforce such a right, power or privilege preclude any further exercise of such
right, power or privilege or of any other right, power or privilege. The rights
and remedies of the Lender under this Agreement, the Notes or any other Loan
Document

                                       18
<PAGE>

are cumulative and not exclusive of any rights or remedies which the Lender
would otherwise have.

         8.05     Notices. All notices, requests, demands, directions and other
communications (collectively "notices") under the provisions of this Agreement
or the Notes must be in writing (including telexed or telecopied communication)
unless otherwise expressly permitted under this Agreement and must be sent by
first-class or first-class express mail, private overnight or next Business Day
courier or by telex or telecopy with confirmation in writing mailed first class,
in all cases with charges prepaid, and any such properly given notice will be
effective when received. All notices will be sent to the applicable party at the
addresses stated below or in accordance with the last unrevoked written
direction from such party to the other parties.

                  If to Borrowers:    Uni-Marts, Inc.
                                      477 East Beaver Avenue
                                      State College, Pennsylvania 16801-5690
                                      Attn: N. Gregory Petrick,
                                            Senior Vice President and
                                            Chief Financial Officer
                                      Telephone: (814) 234-6000
                                      Telecopy: (814) 234-3277

                  and a copy to:      Anthony F. Walsh, Esq.
                                      Saul Ewing LLP
                                      Centre Square West
                                      1500 Market Street, 36th Floor
                                      Philadelphia, Pennsylvania 19102-2186
                                      Telephone: (215) 972-7738
                                      Telecopy: (215) 972-1930

                  If to Lender:       The Provident Bank
                                      FreeMarkets Center, Suite 360
                                      Pittsburgh, Pennsylvania 15222
                                      Attn: Ronald L. Tassone
                                            Senior Vice President
                                      Telephone: (412) 263-4757
                                      Telecopy: (412) 263-4732

                  and a copy to:      James F. Bauerle, Esq.
                                      DKW Law Group(R) LLC
                                      58th Floor, U.S. Steel Tower
                                      600 Grant Street
                                      Pittsburgh, Pennsylvania 15219
                                      Telephone: (412) 355-2600
                                      Telecopy: (412) 355-2609

                                       19
<PAGE>

         8.06     Expenses; Taxes; Attorneys' Fees. The Borrowers agree to pay
or cause to be paid and to save the Lender harmless against liability for the
payment of all reasonable out-of-pocket expenses, including, but not limited to
fees and expenses of counsel and paralegals for the Lender, incurred by the
Lender from time to time (i) arising in connection with the preparation,
execution, delivery and performance of this Agreement, the Notes and the other
Loan Documents, (ii) relating to any requested amendments, waivers or consents
to this Agreement, the Notes or any of the other Loan Documents, (iii) arising
in connection with the Lender's enforcement or preservation of rights under this
Agreement, the Notes or any of the other Loan Documents, including but not
limited to such expenses as may be incurred by the Lender in the collection of
the outstanding principal amount of the Lender, and (iv) arising in connection
with any case under the Bankruptcy Code filed by or against the Borrowers. The
Borrowers agree to pay all stamp, document, transfer, recording or filing taxes
or fees and similar impositions now or in the future determined by the Lender to
be payable in connection with this Agreement, the Notes or any other Loan
Document. The Borrowers agree to save the Lender harmless from and against any
and all present or future claims, liabilities or losses with respect to or
resulting from any omission to pay or delay in paying any such taxes, fees or
impositions. In the event of termination adverse to the Borrowers of any action
at law or suit in equity in relation to this Agreement, the Notes or the other
Loan Documents, the Borrowers will pay, in addition to all other sums which the
Borrowers may be required to pay, a reasonable sum for attorneys' and
paralegals' fees incurred by the Lender or the holder of the Notes in connection
with such action or suit. All payments due from the Borrowers under this Section
will be added to and become part of the Loans until paid in full.

         8.07     Severability. The provisions of this Agreement are intended to
be severable. If any provision of this Agreement is held invalid or
unenforceable in whole or in part in any jurisdiction, the provision will, as to
such jurisdiction, be ineffective to the extent of such invalidity or
unenforceability without in any manner affecting the validity or enforceability
of the provision in any other jurisdiction or the remaining provisions of this
Agreement in any jurisdiction.

         8.08     Governing Law; Consent to Jurisdiction. This Agreement will be
deemed to be a contract under the laws of the Commonwealth of Pennsylvania and
for all purposes will be governed by and construed and enforced in accordance
with the laws of said Commonwealth. The Borrowers consent to the exclusive
jurisdiction and venue of the federal and state courts located in Allegheny
County, Pennsylvania, in any action on, relating to or mentioning this
Agreement, the Notes, the other Loan Documents, or any one or more of them.

         8.09     Prior Understandings. This Agreement, the Notes and the other
Loan Documents supersede all prior understandings and agreements, whether
written or oral, among the parties relating to the transactions provided for in
this Agreement, the Notes and the other Loan Documents.

         8.10     Duration; Survival. All representations and warranties of the
Borrowers contained in this Agreement or made in connection with this Agreement
or any of the other Loan Documents shall survive the making of and will not be
waived by the execution and delivery of this Agreement, the Notes or the other
Loan Documents, by any investigation by the Lender, or

                                       20
<PAGE>

the making of any Loan. Notwithstanding termination of this Agreement or an
Event of Default, all covenants and agreements of the Borrowers will continue in
full force and effect from and after the date of this Agreement so long as the
Borrowers may borrow under this Agreement and until payment in full of the
Notes, interest thereon, and all fees and other obligations of the Borrowers
under this Agreement or the Notes. Without limitation, it is understood that all
obligations of the Borrowers to make payments to or indemnify the Lender will
survive the payment in full of the Notes and of all other obligations of the
Borrowers under this Agreement, the Notes and the other Loan Documents.

         8.11     Term of Agreement. This Agreement will terminate when all
indebtedness of the Borrowers to Lender including, without limitation, the Loans
and interest on the Loans is paid in full, and the Borrowers have no right to
borrow under this Agreement and the Lender has no obligation to make Loans under
this Agreement.

         8.12     Counterparts. This Agreement may be executed in any number of
counterparts and by the different parties to this Agreement on separate
counterparts each of which, when so executed, will be deemed an original, but
all such counterparts will constitute but one and the same instrument.

         8.13     Successors and Assigns. This Agreement will be binding upon
and inure to the benefit of the Lender, the Borrowers and their respective
successors and assigns, except that the Borrowers may not assign or transfer any
of their rights under this Agreement without the prior written consent of the
Lender.

         8.14     No Third Party Beneficiaries. The rights and benefits of this
Agreement and the other Loan Documents are not intended to, and shall not, inure
to the benefit of any third party.

         8.15     Participation. The Lender may from time to time sell, assign
or grant one or more participations in all or any part of the Loans made by the
Lender or which may be made by the Lender, or its right, title and interest in
the Loans or in or to this Agreement, to another lending officer, lender or
financial institution, so long as the Lender remains the administrative agent
for all participants and retains voting control of the participation. Except to
the extent otherwise required by the context of this Agreement, the word
"Lender" where used in this Agreement means and includes any holder of a Note
originally issued to the Lender and each such holder of a Note will be bound by
and have the benefits of this Agreement, the same as if such holder had been a
signatory to this Agreement. In connection with any such sale, assignment or
grant of participation, the Lender may make available to any prospective
purchaser, assignee or participant any information relative to the Borrowers in
the Lender's possession. In the event that Lender desires to sell, assign or
grant participation in excess of 75% of the Loans, Lender shall obtain
Borrowers' prior written consent which shall not be unreasonably withheld.

         8.16     Exhibits. All exhibits and schedules attached to this
Agreement are incorporated and made a part of this Agreement.

                                       21
<PAGE>

         8.17     Headings. The section headings contained in this Agreement are
for convenience only and do not limit or define or affect the construction or
interpretation of this Agreement in any respect.

         8.18     Joinder of Consolidated Subsidiaries. Any Consolidated
Subsidiary of the Borrower formed or acquired after the Closing Date shall
execute and deliver to the Lender (i) a consent and joinder in form and
substance satisfactory to the Lender pursuant to which it shall consent to and
join in this Agreement and to each of the Loan Documents to which the initial
Borrowers are parties, (ii) documents in the forms described in Section 4.01
[Initial Loans] modified as appropriate to relate to such Consolidated
Subsidiary, and (iii) documents necessary to grant and perfect prior security
interests to the Lender in all Collateral held by such Consolidated Subsidiary.
Such consent and joiner and related documents shall be executed and provided to
the Lender within five (5) Business Days after the date of the filing of such
Consolidated Subsidiary's articles of incorporation if the Consolidated
Subsidiary is a corporation, the date of the filing of its certificate of
limited partnership if it is a limited partnership or the date of its
organization if it is an entity other than a limited partnership or corporation.

         8.19     WAIVER OF TRIAL BY JURY. THE BORROWERS AND THE LENDER
EXPRESSLY, KNOWINGLY AND VOLUNTARILY WAIVE ALL BENEFIT AND ADVANTAGE OF ANY
RIGHT TO A TRIAL BY JURY, AND NONE OF THEM WILL AT ANY TIME INSIST UPON, OR
PLEAD OR IN ANY MANNER WHATSOEVER CLAIM OR TAKE THE BENEFIT OR ADVANTAGE OF A
TRIAL BY JURY IN ANY ACTION ARISING IN CONNECTION WITH THIS AGREEMENT, THE NOTES
OR ANY OF THE LOAN DOCUMENTS.

                            [SIGNATURE PAGE FOLLOWS]

                                       22
<PAGE>

         IN WITNESS WHEREOF, and intending to be legally bound, the parties, by
their duly authorized officers, have executed and delivered this Shortfall Loan
Agreement as of the date set forth at the beginning of this Shortfall Loan
Agreement.

ATTEST:                                 UNI-MARTS, INC.

  /S/ JUDY L. TREASTER                  By: /S/ N. GREGORY PETRICK
------------------------------------       -------------------------------------
Secretary                                    N. Gregory Petrick
                                             Executive Vice President and
                                               Chief Financial Officer
                                             Uni-Marts, Inc.

[CORPORATE SEAL]

ATTEST:                                 UNI-MARTS OF AMERICA, INC.

  /S/ DONNA D. WEAVER                   By: /S/ N. GREGORY PETRICK
------------------------------------       -------------------------------------
Secretary                                    N. Gregory Petrick
                                             President
                                             Uni-Marts of America, Inc.

[CORPORATE SEAL]

                                        THE PROVIDENT BANK

                                        By: /S/ RONALD L. TASSONE
                                           -------------------------------------
                                             Ronald L. Tassone
                                             Senior Vice President

                                       23
<PAGE>

                                    EXHIBITS

                                   Exhibit "A"
                              Revolving Credit Note

                                       24
<PAGE>

                                   Exhibit "B"
                                  Loan Request

                                       25
<PAGE>

                                   Exhibit "C"
                               Opinion of Counsel

                                       26

Source: [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00059-of-00352.parquet"}, [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00059-of-00352.parquet"}]]