Exhibit 10.3 AMENDED AND RESTATED MORTGAGE LOAN PURCHASE AGREEMENT PURCHASER: UBS REAL ESTATE SECURITIES INC. ADDRESS: 1285 AVENUE OF THE AMERICAS NEW YORK, NEW YORK 10019 ATTENTION: GEORGE A. MANGIARACINA TELEPHONE: (212) 713-3734 ATTENTION: ROBERT CARPENTER TELEPHONE: (212) 713-8749 SELLER: AMERICAN HOME MORTGAGE INVESTMENT CORP. ADDRESS: 520 BROADHOLLOW ROAD MELVILLE, NEW YORK 11747 ATTENTION: STEPHEN A. HOZIE, CHIEF FINANCIAL OFFICER TELEPHONE: (516) 396-7700 SELLER: AMERICAN HOME MORTGAGE ACCEPTANCE, INC. ADDRESS: 520 BROADHOLLOW ROAD MELVILLE, NEW YORK 11747 ATTENTION: STEPHEN A. HOZIE, CHIEF FINANCIAL OFFICER TELEPHONE: (516) 396-7700 SELLER: AMERICAN HOME MORTGAGE HOLDINGS, INC. ADDRESS: 520 BROADHOLLOW ROAD MELVILLE, NEW YORK 11747 ATTENTION: STEPHEN A. HOZIE, CHIEF FINANCIAL OFFICER TELEPHONE: (516) 396-7700 SELLER: AMERICAN HOME MORTGAGE CORP. ADDRESS: 520 BROADHOLLOW ROAD MELVILLE, NEW YORK 11747 ATTENTION: MICHAEL STRAUSS, PRESIDENT TELEPHONE: (516) 396-7700 SELLER: COLUMBIA NATIONAL, INCORPORATED ADDRESS: 520 BROADHOLLOW ROAD MELVILLE, NEW YORK 11747 ATTENTION: MICHAEL STRAUSS, PRESIDENT TELEPHONE: (516) 396-7700 ATTENTION: STEPHEN A. HOZIE, CHIEF FINANCIAL OFFICER TELEPHONE: (516) 396-7700 DATE OF AGREEMENT: FEBRUARY 6, 2004 -2- TABLE OF CONTENTS Page ---- Section 1 Definitions ........................................................ 1 Section 2 Procedures for Purchases of Mortgage Loans ......................... 10 Section 3 Sale of Mortgage Loans to Takeout Investor ......................... 12 Section 4 Servicing of the Mortgage Loans .................................... 14 Section 5 Trade Assignments .................................................. 16 Section 6 Transfers of Mortgage Loans by Purchaser ........................... 16 Section 7. Record Title to Mortgage Loans; Intent of Parties; Security Interest 16 Section 8. Representations and Warranties ..................................... 18 Section 9. Covenants of the Sellers ........................................... 21 Section 10. Confidentiality ................................................... 26 Section 11. Term .............................................................. 26 Section 12. Exclusive Benefit of Parties; Assignment .......................... 26 Section 13. Amendments; Waivers; Cumulative Rights ............................ 26 Section 14. Execution in Counterparts ......................................... 26 Section 15. Effect of Invalidity of Provisions ................................ 27 Section 16. GOVERNING LAW ..................................................... 27 Section 17. Notices ........................................................... 27 Section 18. Entire Agreement .................................................. 27 Section 19. Costs of Enforcement .............................................. 27 Section 20. Consent to Service ................................................ 27 Section 21. Construction ...................................................... 27 Section 22. Effect of Amendment and Restatement ............................... 27 -i- Schedule I Representations and Warranties Exhibit A Loan Purchase Detail Exhibit A-1 Data Layout Instructions Exhibit B-1 Warehouse Lender's Release Exhibit B-2 Warehouse Lender's Wire Instructions Exhibit C-1 Seller's Release Exhibit C-2 Seller's Wire Instructions Exhibit D Purchaser's Wire Instructions to Seller Exhibit E UCC-1 Financing Statement Exhibit F Authorized Signatories Exhibit G Form of Opinion Exhibit H Cash Account Adjustment Notice Exhibit I Cash Account Wire Instructions Exhibit J Withdrawal/Deposit Notice: Cash Account Exhibit K Takeout Proceeds Identification Letter -ii- AMENDED AND RESTATED MORTGAGE LOAN PURCHASE AGREEMENT THIS AMENDED AND RESTATED MORTGAGE LOAN PURCHASE AGREEMENT, dated as of the date set forth on the cover page hereof (as amended, supplemented or otherwise modified from time to time, "Agreement"), among UBS REAL ESTATE SECURITIES INC. ("Purchaser") and the Sellers whose names are set forth on the cover page hereof (each a "Seller" and, collectively, the "Sellers"). RECITALS WHEREAS, the Purchaser and American Home Mortgage Holdings, Inc., American Home Mortgage Corp. and Columbia National, Incorporated (in such capacity, the "Original American Home Parties") are parties to the Mortgage Loan Purchase Agreement, dated as of February 26, 1999 as amended, supplemented or otherwise modified prior to the date hereof (the "Original Mortgage Loan Purchase Agreement"); WHEREAS, pursuant to the Original Mortgage Loan Purchase Agreement, one or more of the Original American Home Parties may have, in its sole discretion, offered to sell to Purchaser from time to time Mortgage Loans (as defined therein), and Purchaser, in its sole discretion, may have agreed to purchase such Mortgage Loans from such Seller in accordance with the terms and conditions set forth in the Original Mortgage Loan Purchase Agreement; WHEREAS, the Original American Home Parties and the Purchaser desire to amend and restate the Original Mortgage Loan Purchase Agreement as provided herein; and NOW, THEREFORE, for good and valuable consideration, the receipt and adequacy of which are hereby acknowledged, the parties hereto hereby agree that the Original Mortgage Loan Purchase Agreement be amended and restated in its entirety as follows: PRELIMINARY STATEMENT Each Seller may, in its sole discretion, offer to sell to Purchaser from time to time Mortgage Loans, subject to such Seller's obligation to repurchase such Mortgage Loans in accordance with the terms herein and Purchaser, in its sole discretion, may agree to purchase such Mortgage Loans from such Seller in accordance with the terms and conditions set forth in this Agreement. Each Seller, subject to the terms hereof, will cause each of its respective Mortgage Loans to be purchased by Takeout Investor. During the period from the purchase of a Mortgage Loan to the sale of the Mortgage Loan to Takeout Investor, Purchaser expects to rely entirely upon the respective Seller to service (or cause to be serviced) each such Mortgage Loan. The parties hereto hereby agree as follows: Section 1. Definitions. Capitalized terms used but not defined herein shall have the meanings set forth in the Custodial Agreement. As used in this Agreement, the following terms shall have the following meanings: "Accepted Servicing Practices": With respect to each Mortgage Loan, such standards which comply with the applicable standards and requirements under: (i) an applicable Agency Program and related provisions of the applicable Agency Guide pursuant to which the related Mortgage Loan is intended to be purchased, and/or (ii) any applicable FHA and/or VA program and related provisions of applicable FHA and/or VA servicing guidelines. "Act of Insolvency": With respect to the related Seller, (a) the commencement by such Seller as debtor of any case or proceeding under any bankruptcy, insolvency, reorganization, liquidation, dissolution or similar law, or such Seller's seeking the appointment of a receiver, trustee, custodian or similar official for such Seller or any substantial part of its property, or (b) the commencement of any such case or proceeding against such Seller, or another's seeking such appointment, or the filing against such Seller of an application for a protective decree which (1) is consented to or not timely contested by such Seller, (2) results in the entry of an order for relief, such an appointment, the issuance of such a protective decree or the entry of an order having a similar effect, or (3) is not dismissed within sixty (60) days, (c) the making by such Seller of a general assignment for the benefit of creditors, or (d) the admission in writing by such Seller that such Seller is unable to pay its debts as they become due or the nonpayment generally by such Seller of its debts as they become due. "Affiliate": With respect to any Person, any "affiliate" of such Person, as such term is defined in the Bankruptcy Code. "Agency": The Government National Mortgage Association ("GNMA"), the Federal National Mortgage Association ("Fannie Mae"), and the Federal Home Loan Mortgage Corporation ("Freddie Mac"), as applicable. "Agency Approvals": As defined in Section 8(a)(viii) of this Agreement. "Agency Eligible Mortgage Loan": A mortgage loan that is in strict compliance with the eligibility requirements for swap or purchase by the designated Agency, under the applicable Agency Guide and/or applicable Agency Program. "Agency Guide": The GNMA Mortgage-Backed Securities Guide; the Fannie Mae Selling Guide and the Fannie Mae Servicing Guide; the Freddie Mac Sellers' and Servicers' Guide; as applicable, in each case as such Agency Guide may be amended from time to time. "Agency Program": The specific purchase program under the relevant Agency Guide or as otherwise approved by the Agency. "Applicable Guide": The Takeout Investor's eligibility requirements for Mortgage Loans, as applicable, and as each may be amended or supplemented from time to time. "Applicable Purchase Agreement": The applicable agreement, providing for the purchase by Takeout Investor of Mortgage Loans from the related Seller as such agreement may be amended from time to time. "Asset Value": With respect to each Mortgage Loan, the outstanding principal balance of such Mortgage Loan less the Discount; provided, that, the Asset Value shall be 2 deemed to be zero with respect to each Mortgage Loan (1) in respect of which there is a breach of a representation and warranty set forth in Schedule 1 (assuming each representation and warranty is made as of the date Asset Value is determined) or (2) which has been released from the possession of the Custodian under the Custodial Agreement to the related Seller for a period in excess of ten (10) calendar days; provided that the Purchaser may, in its sole and absolute discretion, assign an Asset Value above zero with respect to any Mortgage Loan that would otherwise be deemed to have an Asset Value of zero. "Assignee": With respect to this Agreement and any Mortgage Loan, any assignee of the Purchaser pursuant to a pledge or rehypothecation of the Mortgage Loan. "Authorized Signatory": With respect to each Seller. an officer of such Seller who is authorized and empowered to request a purchase of Mortgage Loans by the Purchaser pursuant to a request for purchase, and is indicated on the Authorized Signatories of such Seller attached hereto as Exhibit F. "Bankruptcy Code": The United States Bankruptcy Code of 1978, as amended from time to time. "Business Day": Any day other than (a) a Saturday, Sunday or other day on which banks located in the City of New York, New York are authorized or obligated by law or executive order to be closed, or (b) any day on which UBS Real Estate Securities Inc. is closed for business, provided that notice thereof shall have been given not less than seven calendar days prior to such day. "Cash Account": A separate cash account established and maintained by the Sellers at the Purchaser under the conditions set forth in Section 2.1. "Cash Account Adjustment": An adjustment to the Cash Account Balance pursuant to a Cash Account Adjustment Notice. "Cash Account Adjustment Notice": A cash account adjustment notice, in the form of Exhibit H; to be used by Purchaser to notify the Sellers of any adjustments to the Cash Account Balance. "Cash Account Balance": As of any date, the net amount of funds in the Cash Account on such date. "Cash Account Interest Accrual": The simple interest calculation posted on the last Business Day of each month resulting from the product of each Business Day's Cash Account Balance and the Cash Account Interest Rate. "Cash Account Interest Rate": With respect to each month, the average opening federal funds rate for such month. For the Cash Account, the opening federal funds rate on a Business Day shall be counted as the Cash Account Interest Rate until the next Business Day. "Cash Account Wire Instructions": The wire instructions, set forth in a letter in the form of Exhibit I, to be used for the payment of funds to the Sellers. 3 "Cash Window Mortgage Loan": Any Mortgage Loan to be sold to an Agency for cash. "Cash Window Transaction": A transaction in which a Cash Window Mortgage Loan is sold. "Code": The Internal Revenue Code of 1986, as amended from time to time. "Collateral": Each of the following items or types of property, whether now owned or hereafter acquired, now existing or hereafter created and wherever located: any cash or United Status Treasury obligations delivered to Purchaser pursuant to Section 7(d), and any and all replacements, substitutions, distributions on or proceeds of any and all of the foregoing. "Commitment Date": The date set forth in a Takeout Commitment as the commitment date. "Commitment Expiration Date": With respect to any Mortgage Loan, the date set forth in the related Takeout Commitment as the commitment expiration date. "Commitment Requirements": The requirements issued by Takeout Investor in the Applicable Guide regarding the issuance of Takeout Commitments, as amended from time to time by Takeout Investor. "Conduit": As defined in the Custodial Agreement. "Conduit Submission Package": As defined in the Custodial Agreement. "Credit File": All papers and records of whatever kind or description, whether developed or originated by the related Seller or others, required to document or service the Mortgage Loan; provided, however, that such Mortgage Loan papers, documents and records shall not include any Mortgage Loan papers, documents or records which are contained in the Conduit Submission Package. "Cure Expiration Date": With respect to a Defective Mortgage Loan in a Cash Window Transaction, the date occurring five Business Days after the Commitment Expiration Date. "Custodial Account": A separate custodial account, established and maintained by the Sellers under the conditions set forth in Section 4(b), for the deposit by the Sellers of all collections in respect of a Mortgage Loan that are payable to Purchaser as the owner of the Mortgage Loan. "Custodial Agreement": The Amended and Restated Mortgage Loan Custodial Agreement, dated as of the date set forth on the cover sheet thereof, among the Sellers, Purchaser and Custodian, as amended from time to time. "Custodial Fee": With respect to each Mortgage Loan, the amount set forth on the related Funding Confirmation as the "Custodial Fee." 4 "Custodian": The custodian named in the Custodial Agreement and its permitted successors. "Defect Amount": An amount (expressed as a positive number) equal to the aggregate Asset Value of the Mortgage Loans owned by Purchaser hereunder less the aggregate Purchase Price for all such Mortgage Loans if at any time the aggregate Asset Value of the Mortgage Loans is less than the aggregate Purchase Price for all such Mortgage Loans. "Defective Mortgage Loan": A Mortgage Loan that is not in compliance with the Applicable Guide and this Agreement. "Discount": With respect to each Mortgage Loan, the amount set forth on such related Funding Confirmation as the Discount. "Document File": The Credit File and the Conduit Submission Package. "Due Date": The day of the month on which the Monthly Payment is due on a Mortgage Loan. "Electronic Tracking Agreement": The Electronic Tracking Agreement, dated as of the date hereof, among Participant, Sellers, MERSCORP, Inc. and Mortgage Electronic Registration Systems, Inc.; provided that if no Mortgage Loans are or will be MERS Designated Mortgage Loans, all references herein to the Electronic Tracking Agreement shall be disregarded. "Electronic Transmission": Shall mean the delivery of information in an electronic format acceptable to the applicable recipient thereof. "FDIC": The Federal Deposit Insurance Corporation or any successor thereto. "FHA": The Federal Housing Administration. "Funding Confirmation": With respect to all Mortgage Loans purchased by Purchaser from the related Seller via a single wire funds transaction on a particular Business Day, the trade confirmation from Purchaser to such Seller confirming the terms of Purchaser's purchase of such Mortgage Loans. "HUD": The United States Department of Housing and Urban Development. "Incremental Pass-Through Rate": The amount by which the Pass-Through Rate is increased upon the occurrence of (i) a Commitment Expiration Date or (ii) any event giving Purchaser the right to elect a remedy pursuant to Section 3, which amount shall be set forth in a Funding Confirmation as the "Incremental Pass-Through Rate". "Interim Funder": With respect to each MERS Designated Mortgage Loan, the Person named on the MERS(R) System as the interim funder pursuant to the MERS Procedures Manual. 5 "Investor": With respect to each MERS Designated Mortgage Loan, the Person named on the MERS(R) System as the investor pursuant to the MERS Procedures Manual. "Loan Purchase Detail": A loan purchase detail, transmitted via Electronic Transmission in the appropriate data layout set forth on Exhibit A-1, prepared by the related Seller, containing each data point set forth on Exhibit A or as may be requested by the Purchaser regarding the characteristics of all Mortgage Loans being offered for sale by such Seller on a particular Business Day. "Losses": Any and all losses, claims, damages, liabilities or expenses (including reasonable attorneys' fees) incurred by any person specified; provided, however, that "Losses" shall not include any losses, claims, damages, liabilities or expenses which would have been avoided had such person taken reasonable actions to mitigate such losses, claims, damages, liabilities or expenses. "MERS Designated Mortgage Loan": Mortgage Loans for which (a) the related Seller has designated or will designate MERS as, and has taken or will take such action as is necessary to cause MERS to be, the mortgagee of record, as nominee for such Seller, in accordance with MERS Procedure Manual and (b) such Seller has designated or will designate the Purchaser as the Investor and Interim Funder on the MERS(R) System. "MERS Procedure Manual": The MERS Procedures Manual attached as Exhibit B to the Electronic Tracking Agreement, as it may be amended, supplemented or otherwise modified from time to time. "MERS Report": The schedule listing MERS Designated Mortgage Loans and other information prepared by the Electronic Agent pursuant to the Electronic Tracking Agreement. "MERS(R) System": The Electronic Agent's mortgage electronic registry system, as more particularly described in the MERS Procedures Manual. "Monthly Payment": The scheduled monthly payment of principal and interest on a Mortgage Loan. "Mortgage": The mortgage, deed of trust or other instrument creating a first lien on an estate in fee simple in real property securing a Mortgage Note. "Mortgage Loan": A loan that is secured by a Mortgage and which is subject to this Agreement, and which satisfies the Commitment Requirements as the same may be modified from time to time. "Mortgage Note": The note or other evidence of the indebtedness of a Mortgagor secured by a Mortgage. "Mortgaged Property": The property subject to the lien of the Mortgage securing a Mortgage Note. 6 "Mortgagor": The obligor on a Mortgage Note. "NCUA": The National Credit Union Administration, or any successor thereto. "Original American Home Parties": Shall have the meaning assigned to such term in the recitals hereof. "Original Mortgage Loan Purchase Agreement": Shall have the meaning assigned to such term in the recitals hereof. "OTS": The Office of Thrift Supervision, or any successor thereto. "Parent Company": A corporation or other entity owning, directly or indirectly, more than 50% of the outstanding shares of voting stock of American Home Mortgage Investment Corp., American Home Mortgage Acceptance, Inc., American Home Mortgage Holdings, Inc., American Home Mortgage Corp. and/or Columbia National, Incorporated. "Pass-Through Rate": With respect to each Mortgage Loan, the rate at which interest is passed through to Purchaser which initially shall be the rate of interest specified on a Funding Confirmation as the Pass-Through Rate. "Performance Fee": With respect to each Mortgage Loan, an amount equal to the Discount less the Custodial Fee, plus the Yield Compensation Adjustment plus or minus any other adjustments permitted hereunder, which amount shall be payable to the related Seller by Purchaser as compensation to such Seller for its services hereunder. "Person": Any individual, corporation, company, voluntary association, partnership, joint venture, limited liability company, trust, unincorporated association or government (or any agency, instrumentality or political subdivision thereof). "Property": Any right or interest in or to property of any kind whatsoever, whether real, personal or mixed and whether tangible or intangible. "Purchase Advice": An approved purchase list delivered to Purchaser by the Takeout Investor via electronic or facsimile transmission, confirming the amount of Takeout Proceeds allocable to each Mortgage Loan purchased by Takeout Investor. "Purchase Date": With respect to any Mortgage Loan, the date of payment thereof by Purchaser to the related Seller of the Purchase Price. "Purchase Price": With respect to each Mortgage Loan, an amount equal to the Trade Principal less an amount equal to the product of the Trade Principal and the Discount. Accrued interest shall be allocated in accordance with Section 2(c). "Purchaser": UBS Real Estate Securities Inc. and its successors. 7 "Purchaser's Wire Instructions to Seller": The wire instructions, set forth in a notice delivered by Purchaser to the related Seller containing the information set forth in Exhibit D, to be used for the payment of all amounts due and payable to Purchaser hereunder. "Qualified Insurer": A mortgage guaranty insurance company duly authorized and licensed where required by law to transact mortgage guaranty insurance business and approved as an insurer by Fannie Mae or Freddie Mac and GNMA. "REIT Seller": As the case may be, American Home Mortgage Investment Corp. and American Home Mortgage Acceptance, Inc. "REIT Status": With respect to any Person, such Person's status as a real estate investment trust, as defined in Section 856(a) of the Code, that satisfies the conditions and limitations set forth in Section 856(b) and 856(c) of the Code. "RTC": The Resolution Trust Corporation or any successor thereto. "Seller": Each Seller whose name is set forth on the cover page hereof, and its permitted successors hereunder. "Seller's Release": A letter in the form of Exhibit C-1, delivered by the related Seller when no Warehouse Lender has an interest in a Mortgage Loan, conditionally releasing all of such Seller's interest in a Mortgage Loan upon receipt of payment by such Seller. "Seller's Wire Instructions": The wire instructions, set forth in a letter in the form of Exhibit C-2, to be used for the payment of funds to the related Seller when no Warehouse Lender has an interest in the Mortgage Loans to which such payment relates. "Seller": The Sellers whose names are set forth on the cover page hereof, and their permitted successors hereunder. "Servicing Rights": Any and all of the following: (a) any and all rights to service the Mortgage Loans; (b) any payments to or monies received by a Seller or any other Person for servicing the Mortgage Loans; (c) any late fees, penalties or similar payments with respect to the Mortgage Loans; (d) all agreements or documents creating, defining or evidencing any such servicing rights to the extent they relate to such servicing rights and all rights of a Seller or any other Person thereunder; (e) escrow payments or other similar payments with respect to the Mortgage Loans and any amounts actually collected by the related Seller or any other Person with respect thereto; and (f) all accounts and other rights to payment related to the Mortgage Loans. "Settlement Date": With respect to any Mortgage Loan, the date the allocable Pass-Through Rate shall cease to accrue upon payment by Takeout Investor to Purchaser of the Takeout Proceeds as confirmed by Purchaser's receipt from the related Seller of the related Settlement Information in accordance with Section 3(a). "Settlement Information": The Purchase Advice or group of Purchase Advices which shall identify each Mortgage Loan by the Mortgagor's name, and of which the aggregate 8 disbursement amount equals the precise dollar amount of Takeout Proceeds to be received by Purchaser from this Agreement and, when applicable, a Takeout Proceeds Identification Letter. "Subsidiary": With respect to any Person, any corporation, partnership or other entity of which at least a majority of the securities or other ownership interests having by the terms thereof ordinary voting power to elect a majority of the board of directors or other persons performing similar functions of such corporation, partnership or other entity (irrespective of whether or not at the time securities or other ownership interests of any other class or classes of such corporation, partnership or other entity shall have or might have voting power by reason of the happening of any contingency) is at the time directly or indirectly owned or controlled by such Person or one or more Subsidiaries of such Person or by such Person and one or more Subsidiaries of such Person. "Successor Servicer": An entity designated by Purchaser, in conformity with Section 16, to replace the related Seller as servicer for Purchaser. "Takeout Commitment": Commitment of the related Seller to sell one or more Mortgage Loans to Takeout Investor and of Takeout Investor to purchase one or more Mortgage Loans from such Seller. "Takeout Investor": The applicable Conduit. "Takeout Proceeds": The amount of funds Takeout Investor pays to Purchaser on a particular Business Day as identified by the related Settlement Information; provided, that the amount of such payment shall be calculated without regard to any set-off, counterclaim or any other adjustment resulting from transactions between the Seller and the Takeout Investor. "Takeout Proceeds Identification Letter": A letter in the form of Exhibit K, delivered by the related Seller to Purchaser identifying Takeout Proceeds received by Purchaser from an Agency or Takeout Investor which funds do not relate to Mortgage Loans purchased by Purchaser from such Seller. "Third Party Underwriter": Any third party, including but not limited to a mortgage loan pool insurer, who underwrites the Mortgage Loan(s) prior to the purchase by Purchaser. "Third Party Underwriter's Certificate": A certificate issued by a Third Party Underwriter with respect to a Mortgage Loan, certifying that such Mortgage Loan complies with its underwriting requirements. "Trade Price": The trade price set forth on a Takeout Commitment. "Trade Principal": With respect to any Mortgage Loan, the outstanding principal balance of the Mortgage Loan multiplied by a percentage equal to the Trade Price. "Transaction": Any sale of a Mortgage Loan by the related Seller to Purchaser pursuant to a Funding Confirmation in accordance with this Agreement. 9 "UBSRES Purchase Program": Purchaser's Cash Window Funding Program, Conduit Funding Program, or MBS Swap Funding Program as applicable. "VA": The Department of Veterans Affairs. "Warehouse Lender": Any lender, including, without limitation, Purchaser, providing financing to the related Seller in any fractional amount for the purpose of originating or purchasing Mortgage Loans which lender has a security interest in such Mortgage Loans as collateral for the obligations of such Seller to such lender. "Warehouse Lender's Release": A letter in the form of Exhibit B-1, from a Warehouse Lender to Purchaser, conditionally releasing all of Warehouse Lender's right, title and interest in certain Mortgage Loans identified therein upon receipt of payment by Warehouse Lender. "Warehouse Lender's Wire Instructions": The wire instructions, set forth in a letter in the form of Exhibit B-2, from a Warehouse Lender to Purchaser, setting forth wire instructions for all amounts due and payable to such Warehouse Lender hereunder. "Withdrawal/Deposit Notice": A notice, substantially in the form of Exhibit J, delivered by the Sellers to Purchaser, from time to time, in connection with withdrawals from and deposits to the Cash Account. "Wire Fee": For each disbursement relating to a Transaction, a fee payable to Purchaser by the related Seller as set forth in the Funding Confirmation. "Yield Compensation Adjustment": Subject to any further adjustment provided in this Agreement, an amount (which may be a negative number) equal to: A(BC-DE) 360 where (i) A equals the number of days in the period beginning on the Purchase Date to but not including the Settlement Date, (ii) B equals the principal amount of the Mortgage Loan, (iii) C equals the interest rate (expressed as a decimal) on the Mortgage Loan, (iv) D equals the Purchase Price and (v) E equals the Pass-Through Rate (expressed as a decimal). Section 2. Procedures for Purchases of Mortgage Loans. (a) (1) Purchaser may, in its sole discretion, from time to time, purchase one or more Mortgage Loans from the related Seller. The related Seller shall be deemed to make for the benefit of Purchaser, as of the applicable dates specified in Section 8, the representations and warranties set forth in Section 8 in respect of each such Mortgage Loan. (a) (2) Prior to Purchaser's election to purchase any Mortgage Loan, Purchaser shall have received from the related Seller (i) a Loan Purchase Detail, via Electronic Transmission, (ii) a MERS Report reflecting the Purchaser as Investor or Interim Funder for each MERS Designated Mortgage Loan and (iii) Custodian shall have received all applicable 10 documents required by Section 2 of the Custodial Agreement. The terms and conditions of such purchase shall be set forth in this Agreement and in each Funding Confirmation. (b) (1) If Purchaser elects to purchase any Mortgage Loan, Purchaser shall pay the amount of the Purchase Price for such Mortgage Loan by wire transfer of immediately available funds (i) if a Warehouse Lender's Release has been included in the related Conduit Submission Package, in accordance with the Warehouse Lender's Wire Instructions or (ii) if there is no Warehouse Lender's Release included in the related Conduit Submission Package, in accordance with the Seller's Wire Instructions. If Purchaser is the Warehouse Lender with respect to a Mortgage Loan, the amount transferred shall be reduced to account for amounts previously advanced by Purchaser with respect to such Mortgage Loan by such Warehouse Lender. With respect to each Mortgage Loan which Purchaser has elected to purchase, Custodian shall deliver to Takeout Investor the applicable portion of the Conduit Submission Package, in the manner and at the time set forth in the Custodial Agreement. The related Seller shall thereafter promptly deliver to Takeout Investor any and all additional documents requested by Takeout Investor to enable Takeout Investor to make payment to Purchaser of the Takeout Proceeds. (b) (2) Simultaneously with the payment by Purchaser of the Purchase Price of a Mortgage Loan, in accordance with the Warehouse Lender's Wire Instructions or the related Seller's Wire Instructions, as applicable, with respect to a Mortgage Loan, such Seller hereby conveys to Purchaser all of such Seller's right, title and interest in and to such Mortgage Loan, free and clear of any lien, claim or encumbrance. (c) With respect to each Mortgage Loan that Purchaser elects to purchase hereunder, Purchaser shall owe to the related Seller a Performance Fee. The Yield Compensation Adjustment component of the Performance Fee shall include an accrued interest calculation. Purchaser's accrued interest calculation shall be identical to that of Takeout Investor, therefore the amount of accrued interest included in a settlement calculation will represent accrued interest paid to Purchaser and paid by Purchaser. (d) Notwithstanding the satisfaction by the related Seller of the conditions specified in Section 2(a), Purchaser is not obligated to purchase any Mortgage Loan offered to it hereunder. In the event that Purchaser rejects a Mortgage Loan for purchase for any reason and/or does not transmit the Purchase Price, any Conduit Submission Package delivered to Custodian in anticipation of such purchase shall be returned by Custodian in accordance with the terms of the bailee letter under which it was received. Section 2.2 Cash Account. (a) The Sellers hereby authorize and direct Purchaser to create a separate Cash Account for the Sellers. The Cash Account shall be held by Purchaser for the Sellers subject to the terms and conditions of this Agreement. Purchaser shall notify the Sellers, via electronic or facsimile transmission, of the Cash Account Balance on each Business Day when the Cash Account Balance is greater than zero and on each Business Day on which a Transaction occurs hereunder. 11 (b) Purchaser shall credit the Cash Account for (i) any deposits therein by any Seller upon such Seller's written direction pursuant to a Withdrawal/Deposit Notice, (ii) any amounts due any of the Sellers and payable by Purchaser under any UBSRES Purchase Program to the extent not otherwise netted as described hereunder, (iii) any Cash Account Interest Accruals and (iv) any deposits by any Seller hereunder. (c) Purchaser shall debit the Cash Account for (i) any withdrawals therefrom by the Sellers upon written direction pursuant to a Withdrawal/Deposit Notice from each Seller, (ii) any amounts due Purchaser and payable by any Seller under any UBSRES Purchase Program, (iii) any debit pursuant to a Cash Account Adjustment and (iv) any Wire Fees. (d) Upon termination of this Agreement and payment in full of all obligations owing by the Sellers hereunder, under the Custodial Agreement and under the Electronic Tracking Agreement (if any), Purchaser shall remit to the Sellers the Cash Account Balance. Section 3. Sale of Mortgage Loans to Takeout Investor(a) . (a)(1) Upon the sale to Takeout Investor of a Mortgage Loan previously purchased by Purchaser hereunder, the related Seller shall cause Takeout Proceeds relating to such Mortgage Loan to be paid to Purchaser in accordance with Purchaser's Wire Instructions to such Seller. Since a Takeout Investor or an Agency may aggregate Takeout Proceeds from several Mortgage Loans in one wire transfer, it may be necessary, from time to time, for the related Seller to cause a Takeout Investor or an Agency to also pay to Purchaser Takeout Proceeds relating to Mortgage Loans not purchased by Purchaser. (a)(2) Upon receipt by Purchaser of any Takeout Proceeds, Purchaser will attempt to identify such Takeout Proceeds by reviewing the Settlement Information that has been supplied by the related Seller in advance of the purchase of Mortgage Loans by the Agency. (a)(3) The Settlement Date will occur on the earliest date Settlement Information is made available by the related Seller to Purchaser, Purchaser will (i) place all related unidentified Takeout Proceeds in a non-interest bearing account and (ii) continue to accrue interest at the Pass-Through Rate on all Mortgage Loans which relate to such unidentified Takeout Proceeds until the Settlement Date of such Mortgage Loans. (a)(4) All Takeout Proceeds received by Purchaser from Takeout Investor after 3:00 P.M. New York City time on a Business Day (or at any time on a day which is not a Business Day) shall be deemed, with regard to determining the Settlement Date, received by Purchaser on the next succeeding Business Day. (b)(1) If any Mortgage Loan is rejected by Takeout Investor because it is a Defective Mortgage Loan, the related Seller shall promptly notify Purchaser. If any Mortgage Loan is a Defective Mortgage Loan on the Purchase Date and in Purchaser's sole judgment the defects in such Mortgage Loan will not be cured (or in fact are not cured) by the related Seller prior to the Commitment Expiration Date, the Pass-Through Rate applicable to such Defective Mortgage Loan shall, on such Commitment Expiration Date, increase by the Incremental Pass-Through Rate and Purchaser, at its election, may require that such Seller, upon receipt of notice from Purchaser, immediately repurchase Purchaser's ownership interest in such Defective 12 Mortgage Loan by remitting to Purchaser (in immediately available funds in accordance with Purchaser's instructions) the amount paid by Purchaser for such Defective Mortgage Loan plus interest at the Pass-Through Rate on the principal amount thereof from the Purchase Date of such Mortgage Loan to the date of such repurchase. If at any time prior to the repurchase of a Defective Mortgage Loan by the related Seller or the purchase of a Mortgage Loan by Takeout Investor, such Seller receives the Mortgage Note or any other portion of the Conduit Submission Package, such Seller shall promptly forward such Mortgage Note and/or other portion of the Conduit Submission Package to Purchaser. (b)(2) If the related Seller fails to comply with its obligations in the manner described in Section 3(b)(1), upon receipt by such Seller of notice from Purchaser, such Seller's rights and obligations to service its Mortgage Loans, as provided in this Agreement, shall terminate. If an Act of Insolvency occurs at any time, the related Seller's rights and obligations to service the Mortgage Loans, as provided in this Agreement, shall terminate immediately, without any notice or action by Purchaser. Upon any such termination, Purchaser is hereby authorized and empowered as the exclusive agent for the related Seller to sell and transfer such rights to service its Mortgage Loans for such price and on such terms and conditions as Purchaser shall reasonably determine, and such Seller shall not otherwise attempt to sell or transfer such rights to service without the prior consent of Purchaser. The related Seller shall perform all acts and take all action so that all files and documents relating to the Mortgage Loans held by such Seller, together with all escrow amounts relating to such Mortgage Loans, are delivered to Successor Servicer. To the extent that the approval of a Third Party Underwriter or any other person is required for any such sale or transfer, such Seller shall fully cooperate with Purchaser to obtain such approval. Upon exercise by Purchaser of its remedies under this Section 3(b)(2), the related Seller hereby authorizes Purchaser to receive all amounts paid by any purchaser of such rights to service the Mortgage Loans and to remit such amounts to such Seller subject to Purchaser's rights of set-off under this Agreement. Upon exercise by Purchaser of its remedies under this Section 3(b)(2), Purchaser's obligation to pay and the related Seller's right to receive any portion of the Performance Fee relating to such Mortgage Loans shall automatically be canceled and become null and void, provided that such cancellation shall in no way relieve such Seller or otherwise affect the obligation of such Seller to indemnify and hold Purchaser harmless as specified in Section 3(c). (b)(3) Each Mortgage Loan required to be delivered to Successor Servicer by Section 3(b)(2) shall be delivered free of any servicing rights in favor of the related Seller and free of any title, interest, lien, encumbrance or claim of any kind of such Seller. The related Seller shall deliver or cause to be delivered all files and documents relating to each Mortgage Loan held by such Seller to Successor Servicer. The related Seller shall promptly take such actions and furnish to Purchaser such documents that Purchaser deems necessary or appropriate to enable Purchaser to cure any defect in each such Mortgage Loan or to enforce such Mortgage Loans, as appropriate. (c) The related Seller agrees to indemnify and hold Purchaser and its assignees harmless from and against all Losses resulting from or relating to any breach or failure to perform by such Seller of any representation, warranty, covenant, term or condition made or to be performed by such Seller under this Agreement. 13 (d) No exercise by Purchaser of its rights under this Section 3 shall relieve the related Seller of responsibility or liability for any breach of this Agreement. (e) The related Seller hereby grants Purchaser a right of set-off against the payment of any amounts that may be due and payable to Purchaser from such Seller, such right to be upon any and all monies or other property of such Seller held or received by Purchaser, or due and owing from Purchaser to such Seller. Section 4. Servicing of the Mortgage Loans. (a) It is expressly acknowledged that the Servicing Rights relating to each Mortgage Loan purchased by Purchaser hereunder have been or will be sold, assigned, and transferred by the related Seller to Purchaser along with such Mortgage Loan. The related Seller shall service and administer each Mortgage Loan on behalf of Purchaser on an interim basis in accordance with accepted and prudent mortgage loan servicing standards and procedures generally accepted in the mortgage banking industry for the same type of mortgage loans as the Mortgage Loans and in a manner at least equal in quality to the servicing such Seller provides for mortgage loans which it owns and in accordance with the requirements of the Takeout Investor as though the Takeout Investor's requirements were set forth in an independent contract between such Seller and Purchaser, provided that such Seller shall at all times comply with applicable law and the requirements of any applicable insurer or guarantor so that the insurance and any applicable guarantee in respect of any Mortgage Loan is not voided or reduced. The related Seller shall at all times maintain accurate and complete records of its servicing of each of its Mortgage Loans, and Purchaser may, at any time during such Seller's business hours, on reasonable notice, examine and make copies of such records. On the 2nd day of each calendar month, or at any other time upon Purchaser's request, such Seller shall deliver to Purchaser reports regarding the status of each of its Mortgage Loans in accordance with Section 9(l) and Section 9(m), which shall include, with respect to any MERS Designated Mortgage Loan, MERS status, and any circumstances that could materially adversely affect any such Mortgage Loan, Purchaser's ownership of any such Mortgage Loan or the collateral securing any such Mortgage Loan. The related Seller agrees and acknowledges that Purchaser may, at any time, terminate the servicing of the Mortgage Loans by such Seller and transfer servicing to another Person on such date as Purchaser may determine in its sole discretion. In the event that anything in this Agreement is interpreted as constituting one or more interim servicing contracts, each such servicing contract shall terminate automatically upon the earlier of (i) the repurchase of a Mortgage Loan by the related Seller or (ii) the Purchaser's notice to such Seller directing such Seller to transfer servicing (provided, such Seller's obligations as set forth herein to cooperate in the transfer of such servicing shall not terminate until such servicing has actually been transferred in full). (b) Within two Business Days of notice from Purchaser or with respect to each Mortgage Loan, on the Commitment Expiration Date: (i) The Sellers shall establish and maintain a Custodial Account entitled "[name of Seller(s)], in trust for UBS Real Estate Securities Inc. and its assignees under the Amended and Restated Mortgage Loan Purchase Agreement dated [the date of this Agreement]" and shall promptly deposit into such Custodial Account, in the form received with any necessary endorsements, all collections received in respect of each 14 Mortgage Loan that are payable to Purchaser as the owner of each such Mortgage Loan; and (ii) at the Purchaser's sole option, upon written notice from the Purchaser, the related Seller shall transfer servicing of the Mortgage Loans to a Successor Servicer designated by the Purchaser. (c) Amounts deposited in the Custodial Account with respect to any Mortgage Loan shall be held in trust for Purchaser as the owner of such Mortgage Loan and shall be released only as follows: (i) Except as otherwise provided in this Section 4(c), following receipt by Purchaser or its designee of the Takeout Proceeds for such Mortgage Loan from Takeout Investor or the related Seller amounts deposited in the Custodial Account shall be paid in accordance with Section 2(c). Notwithstanding the foregoing, all amounts deposited in the Custodial Account shall be paid to the related Seller upon the purchase by Takeout Investor of the related Mortgage Loan(s) from Purchaser if, and to the extent that, the amounts due and payable to Purchaser hereunder have been set off against the Purchase Price for the Mortgage Loan or the Performance Fee relating to the Mortgage Loan. The amounts paid to the related Seller (if any) pursuant to this Section 4(c)(1) shall constitute such Seller's sole compensation for servicing the Mortgage Loans as provided in this Section 4. (ii) If a Successor Servicer is appointed by Purchaser (either under the circumstances set forth in clause (b)(ii) above, or otherwise), all amounts deposited in the Custodial Account shall be paid to Purchaser promptly upon such delivery. (iii) During the period that any Seller acts as servicer, all amounts deposited in the Custodial Account shall be released only in accordance with Purchaser's written instructions. (iv) With respect to a Cash Window Transaction, if a Mortgage Loan is not purchased by the Agency on or before the Cure Expiration Date, during the period thereafter that the related Seller acts as servicer, all amounts deposited in the Custodial Account shall be released only in accordance with Purchaser's written instructions. (d) In the event the related Seller or its Affiliate is servicing the Mortgage Loans, such Seller shall permit the Purchaser to inspect such Seller's or its Affiliate's servicing facilities, as the case may be, for the purpose of satisfying the Purchaser that such Seller or its Affiliate, as the case may be, has the ability to service the Mortgage Loans as provided in this Agreement. (e) If the servicer of the Mortgage Loans is the related Seller or the servicer is an Affiliate of such Seller, such Seller shall provide to Purchaser a letter from such Seller or such Affiliate, as the case may be, to the effect that upon 1 day's notice from Purchaser, such Seller's rights and obligations to service the Mortgage Loans shall terminate immediately, without any further notice or action by Purchaser and such Seller shall transfer servicing to Purchaser's designee, at no cost or expense to the Purchaser, it being agreed that such Seller will pay any and 15 all fees required to terminate the Servicing Agreement and to effectuate the transfer of servicing to the designee of the Purchaser. Section 5. Trade Assignments. Each Seller hereby assigns to Purchaser, free of any security interest, lien, claim or encumbrance of any kind, such Seller's rights, under each Takeout Commitment to the full extent permitted by Takeout Investor, to deliver the Mortgage Loan(s) specified therein to Takeout Investor and to receive the Takeout Proceeds therefor from Takeout Investor. Purchaser shall not be deemed to have accepted such rights of the related Seller which relate to a particular Mortgage Loan unless and until it purchases the Mortgage Loan, and nothing set forth herein shall be deemed to impair Purchaser's right to reject any Mortgage Loan for any reason, in its sole discretion. Section 6. Transfers of Mortgage Loans by Purchaser. Purchaser may, in its sole discretion, assign all of its right, title and interest in or grant a security interest in any Mortgage Loan sold by the related Seller hereunder and all rights of Purchaser under this Agreement and the Custodial Agreement, in respect of such Mortgage Loan to Assignee, subject only to an obligation on the part of Assignee to deliver each such Mortgage Loan to Takeout Investor pursuant to Section 5 or to Purchaser to permit Purchaser or its designee to make delivery thereof to Takeout Investor pursuant to Section 5. It is anticipated that such assignment to Assignee will be made by Purchaser, and the related Seller hereby irrevocably consents to such assignment. No notice of such assignment shall be given by Purchaser to any Seller or Takeout Investor. Assignment by Purchaser of the Mortgage Loans as provided in this Section 6 shall not release Purchaser from its obligations otherwise under this Agreement. Without limitation of the foregoing, an assignment of a Mortgage Loan to Assignee, as described in this Section 6, shall be effective upon delivery to Assignee of a Conduit Submission Package. Section 7. Record Title to Mortgage Loans; Intent of Parties; Security Interest. From and after the delivery of the related Conduit Submission Package, and subject to the remedies of Purchaser in Section 3, the related Seller shall remain the last named payee or endorsee of each Mortgage Note and the mortgagee or assignee of record of each Mortgage (except with respect to a MERS Designated Mortgage Loan) in trust for the benefit of Purchaser, for the sole purpose of facilitating the servicing of such Mortgage Loan. (a) Each Seller shall maintain a complete set of books and records for each of its Mortgage Loans which shall be clearly marked to reflect the ownership interest in each such Mortgage Loan of Purchaser and with respect to each MERS Designated Mortgage Loan, such Seller shall designate the Purchaser as the Investor and Interim Funder on the MERS(R) System. (b) Purchaser and each Seller confirm that the transactions contemplated herein are intended to be sales of the Mortgage Loans by the related Seller to Purchaser rather than borrowings secured by the Mortgage Loans. In the event, for any reason, any transaction is construed by any court or regulatory authority as a borrowing rather than as a sale, each Seller and Purchaser intend that Purchaser or Assignee, as the case may be, shall have a perfected first priority security interest in the related Mortgage Loans (including all servicing rights related 16 thereto), the Custodial Account, the Takeout Commitments and the proceeds of any and all of the foregoing and, free and clear of adverse claims (collectively, the "Mortgage Collateral"). In such case, the related Seller shall be deemed to have hereby granted to Purchaser or Assignee, as the case may be, a first priority security interest in and lien upon the Mortgage Collateral, free and clear of adverse claims. In such event, this Agreement shall constitute a security agreement, the Custodian shall be deemed to be an independent custodian for purposes of perfection of the security interest granted to Purchaser or Assignee, as the case may be, and Purchaser or Assignee, as the case may be, shall have all of the rights of a secured party under applicable law. The related Seller shall, not later than the date of the first purchase of a Mortgage Loan by Purchaser under this Agreement, deliver to Purchaser a UCC-1 Financing Statement containing a description of the Mortgage Collateral in the form attached hereto in Exhibit E. (c) The related Seller acknowledges that Purchaser's purchase of Mortgage Loans hereunder will be based in part on the existence of one or more Takeout Commitments with respect to such Mortgage Loans, such Seller's representations and warranties with respect to such Takeout Commitments and the related Takeout Investors and such Seller's covenants with respect to such Takeout Commitments and Takeout Investors. In order to secure the related Seller's obligations with respect thereto, and as a condition to Purchaser's purchase of any Mortgage Loans hereunder, such Seller hereby grants to Purchaser a first priority perfected security interest in and lien upon the Collateral, free and clear of adverse claims. If at any time there exists a Defect Amount, then the Sellers shall deliver to the Purchaser cash or United States Treasury obligations approved by the Purchaser in an amount equal to the Defect Amount as security for their respective obligations hereunder. If Purchaser delivers notice of the existence of such Defect Amount (a "Defect Notice") to the Sellers on or prior to 10:00 a.m. (New York City time) on any Business Day, then the Sellers shall deliver to Purchaser an amount equal to the Defect Amount no later than 5:00 p.m. (New York City time) on such Business Day. In the event Purchaser delivers a Defect Notice to the Sellers after 10:00 a.m. (New York City time) on any Business Day, then such Defect Notice shall be deemed to have been delivered on the following Business Day and the Sellers shall be required to deliver to Purchaser an amount equal to the Defect Amount no later than 5:00 p.m. (New York City time) on such subsequent Business Day. At such time as a Defect Amount ceases to exist or the Sellers have delivered cash or United States Treasury obligations in an amount in excess of such Defect Amount to Purchaser (such amounts the "Repurchase Excesses") pursuant to this Section 7(d), Purchaser shall remit to the Sellers such Repurchase Excesses. In the event Purchaser determines that the related Seller fails to perform in any material respect any of its obligations with respect to any Takeout Commitment or Takeout Investor, or any of such Seller's representations, warranties or covenants with respect thereto, Purchaser shall have all rights and remedies available to it with respect to the Collateral under applicable law. In addition to any rights and remedies of the Purchaser provided by this Agreement and by law, Purchaser shall have the right, without prior notice to the related Seller, any such notice being expressly waived by such Seller to the extent permitted by applicable law, upon any amount becoming due and payable by such Seller hereunder to set-off and appropriate and apply against such amount any and all deposits (general or special, time or demand, provisional or final), in any currency, and any other credits, indebtedness or claims, in any currency, in each case whether direct or indirect, absolute or contingent, matured or unmatured, at any time held or owing by the Purchaser or any Affiliate thereof to or for the credit or the account of the related Seller. 17 Section 8. Representations and Warranties. (a) Each Seller hereby represents and warrants to Purchaser as of the date hereof and as of the date of each delivery of a Conduit Submission Package that: (i) Such Seller is duly organized, validly existing and in good standing under the laws of the state of its organization or of the United States of America and has all licenses necessary to carry on its business as now being conducted and is licensed, qualified and in good standing to do business in each jurisdiction in which it is legally required to do so. Such Seller has all requisite power and authority (including, if applicable, corporate power) to execute and deliver this Agreement, the Electronic Tracking Agreement and the Custodial Agreement and to perform in accordance herewith and therewith; the execution, delivery and performance of this Agreement, the Electronic Tracking Agreement and the Custodial Agreement (including all instruments of transfer to be delivered pursuant to this Agreement, the Electronic Tracking Agreement and the Custodial Agreement) by such Seller and the consummation of the transactions contemplated hereby and thereby have been duly and validly authorized. Each of this Agreement, the Electronic Tracking Agreement and the Custodial Agreement evidences the valid, binding and enforceable obligation of such Seller and all requisite action (including, if applicable, corporate action) has been taken by such Seller to make this Agreement, the Electronic Tracking Agreement and the Custodial Agreement valid and binding upon such Seller in accordance with its terms; (ii) No approval of the transactions contemplated by this Agreement, the Electronic Tracking Agreement or the Custodial Agreement from the OTS, the NCUA, the FDIC or any similar federal or state regulatory authority having jurisdiction over such Seller is required, or if required, such approval has been obtained. The transfers, assignments and conveyances provided for herein and therein are not subject to the bulk transfer or any similar statutory provisions in effect in any applicable jurisdiction; (iii) The consummation of the transactions contemplated by this Agreement, the Electronic Tracking Agreement and the Custodial Agreement are in the ordinary course of business of such Seller and will not result in the breach of any term or provision of the charter, by-laws or other organizational document of such Seller or result in the breach of any term or provision of, or conflict with or constitute a default under or result in the acceleration of any obligation under, an agreement, indenture or loan or credit agreement or other instrument to which such Seller or its property is subject, or result in the violation of any law, rule, regulation, order, judgment or decree to which such Seller or its property is subject; (iv) This Agreement, the Custodial Agreement, the Electronic Tracking Agreement and every document to be executed by such Seller pursuant hereto and thereto is and will be valid, binding and a subsisting obligation of such Seller, enforceable in accordance with its respective terms. No consents or approvals are required to be obtained by such Seller or its Parent Company for the execution, delivery and performance of this Agreement, the Electronic Tracking Agreement or the Custodial Agreement by such Seller; 18 (v) Purchaser will be the sole owner of the related Mortgage Loan, free and clear of any lien, claim or encumbrance; (vi) All information relating to such Seller that such Seller has delivered or caused to be delivered to Purchaser, including, but not limited to, all documents related to this Agreement, the Electronic Tracking Agreement, the Custodial Agreement or such Seller's financial statements, and all such information hereafter furnished by such Seller, does not and will not contain any untrue statement of a material fact or omit to state a material fact necessary to make the statements made therein or herein in light of the circumstances under which they were made, not misleading. Such Seller has disclosed in writing any and all facts relating to such Seller that materially and adversely affect or may affect the business operations or financial condition of such Seller or the ability of such Seller to perform its obligations under this Agreement, the Electronic Tracking Agreement or the Custodial Agreement; (vii) There are no actions, suits or proceedings pending, or to the knowledge of such Seller threatened, including any claims for which an action, suit or proceeding has not been commenced, against or affecting such Seller or any of its assets in any court or before any arbitrator or before any governmental commission, board, bureau or other administrative agency that, in any such case, if adversely determined, would have a material adverse effect on the financial condition or business of such Seller or the ability of such Seller to perform under this Agreement, the Electronic Tracking Agreement, each Funding Confirmation and the Custodial Agreement; (viii) If applicable with respect to each Mortgage Loan sold hereunder, such Seller (and each servicer) is approved by GNMA as an approved issuer, Fannie Mae as an approved lender, Freddie Mac as an approved seller/servicer (as the case may be) and by FHA as an approved mortgagee and by VA as an approved VA lender, in each case in good standing (such collective approvals and conditions, "Agency Approvals"), with no event having occurred or such Seller (or any subservicer) having any reason whatsoever to believe or suspect will occur prior to the purchase of the Mortgage Loan by the related Agency, including without limitation a change in insurance coverage which would either make such Seller (or any servicer) unable to comply with the eligibility requirements for maintaining all such Agency Approvals or require notification to the relevant Agency or to HUD, FHA or VA. Should such Seller (or any servicer), for any reason, cease to possess all such Agency Approvals, or should notification to the relevant Agency or to HUD, FHA or VA be required, such Seller shall so notify Purchaser immediately in writing. Notwithstanding the preceding sentence, such Seller shall take all necessary action to maintain all of its (and each servicer's) Agency Approvals at all times during the term of this Agreement. Such Seller (and any servicer) has adequate financial standing, servicing facilities, procedures and experienced personnel necessary for the sound servicing of mortgage loans of the same types as may from time to time constitute Mortgage Loans and in accordance with Accepted Servicing Practices; (ix) The Custodian is an eligible custodian under the Agency Guide and Agency Program; 19 (x) Such Seller and its Subsidiaries have filed all Federal income tax returns and all other material tax returns that are required to be filed by them and have paid all taxes due pursuant to such returns or pursuant to any assessment received by it or any of its Subsidiaries, except for any such taxes as are being appropriately contested in good faith by appropriate proceedings diligently conducted and with respect to which adequate reserves have been provided. The charges, accruals and reserves on the books of such Seller and its Subsidiaries in respect of taxes and other governmental charges are, in the opinion of such Seller, adequate; (xi) Neither such Seller nor any of its Subsidiaries is an "investment company", or a company "controlled" by an "investment company", within the meaning of the Investment Company Act of 1940, as amended; (xii) Upon the filing of financing statements on Form UCC-1 naming Purchaser as "Secured Party", such Seller as "Debtor" and describing the Collateral, in the jurisdictions and recording offices listed on Exhibit V attached hereto, the security interests granted hereunder in the Collateral will constitute fully perfected security interests under the Uniform Commercial Code in all right, title and interest of such Seller in, to and under such Collateral, which can be perfected by filing under the Uniform Commercial Code; (xiii) As of the date hereof, and during the four months immediately preceding the date hereof, such Seller's chief executive office, is, and has been located at 520 Broadhollow Road, Melville, New York 11747. As of the date hereof, Seller's jurisdiction of organization is as follows: American Home Mortgage Investment Corp., Maryland, American Home Mortgage Acceptance, Inc., Maryland, American Home Mortgage Holdings, Inc., Delaware, American Home Mortgage Corp., New York, and/or Columbia National, Incorporated, Maryland; and (xiv) As of the date hereof, with respect to the Original Mortgage Loan Purchase Agreement, no default has occurred and is continuing thereunder and there is no breach of representation or warranty thereunder. (b) Such Seller hereby represents, warrants and covenants to Purchaser with respect to each Mortgage Loan as of the related Purchase Date each of the representations and warranties set forth on Schedule I hereto is true and correct in all respects. (c) Each of American Home Mortgage Investment Corp. and American Home Mortgage Acceptance, Inc. hereby represents, warrants and covenants to Purchaser that it is a REIT Seller and it has not engaged in any material "prohibited transactions" as defined in Section 857(b)(6)(B)(iii) and (C) of the Code. Each REIT Seller for its current "tax year" (as defined in the Code) is entitled to a dividends paid deduction under the requirements of Section 857 of the Code with respect to any dividends paid by it with respect to each such year for which it claims a deduction in its Form 1120-REIT filed with the United States Internal Revenue Service for such year. 20 The representations and warranties of each Seller in this Section 8 are unaffected by and supersede any provision in any endorsement of any Mortgage Loan or in any assignment with respect to such Mortgage Loan to the effect that such endorsement or assignment is without recourse or without representation or warranty. With respect to each Mortgage Loan purchased by Purchaser hereunder, to the extent that any representation or warranty made by the related Seller is either not required by Takeout Investor or is waived by Takeout Investor, Purchaser hereby agrees to waive such representation or warranty if such Mortgage Loan is purchased by Takeout Investor from Purchaser, in accordance with the terms of the related Takeout Commitment. Section 9. Covenants of the Sellers. Each Seller hereby covenants and agrees with Purchaser as follows: (a) Such Seller shall deliver to Purchaser: (i) Within one hundred twenty (120) days after the end of each fiscal year of such Seller, consolidated balance sheets of such Seller and its consolidated subsidiaries and the related consolidated statements of income showing the financial condition of Seller and its consolidated subsidiaries as of the close of such fiscal year and the results of operations during such year, and a consolidated statement of cash flows, as of the close of such fiscal year, setting forth, in each case, in comparative form the corresponding figures for the preceding year, all the foregoing consolidated financial statements to be reported on by, and to carry the report (acceptable in form and content to Purchaser) of an independent public accountant of national standing acceptable to Purchaser; (ii) Within sixty (60) days after the end of each of the first three fiscal quarters of each fiscal year of such Seller, unaudited consolidated balance sheets and consolidated statements of income, all to be in a form acceptable to Purchaser, showing the financial condition and results of operations of such Seller and its consolidated subsidiaries on a consolidated basis as of the end of each such quarter and for the then elapsed portion of the fiscal year, setting forth, in each case, in comparative form the corresponding figures for the corresponding periods of the preceding fiscal year, certified by a financial officer of such Seller (acceptable to Purchaser) as presenting fairly the financial position and results of operations of such Seller and its consolidated subsidiaries and as having been prepared in accordance with generally accepted accounting principles consistently applied, in each case, subject to normal year-end audit adjustments; (iii) Within forty-five (45) days after the end of each of the first two months of each fiscal quarter of such Seller, unaudited consolidated balance sheets and consolidated statements of income, all to be in a form acceptable to Purchaser, showing the financial condition and results of operation of such Seller and its consolidated subsidiaries on a consolidated basis as of the end of each such month and for the then elapsed portion of the fiscal year, setting forth, in each case, in comparative form the corresponding figures for the corresponding periods of the preceding fiscal year, certified by a financial officer of such Seller (acceptable to Purchaser) as presenting fairly the financial position and results of operations of such Seller and its consolidated subsidiaries 21 and as having been prepared in accordance with generally accepted accounting principles consistently applied, in each case, subject to normal year-end audit adjustments; (iv) Promptly upon receipt thereof, a copy of each other report submitted to such Seller by its independent public accountants in connection with any annual, interim or special audit of such Seller; (v) Promptly upon becoming aware thereof, notice of (1) the commencement of, or any determination in, any legal, judicial or regulatory proceedings where damages, fines, penalties and/or other claims could reasonably be expected to be or are in excess of $250,000 (x) against such Seller or Parent Company or (y) where injunctive or other equitable relief is sought against such Seller or Parent Company, (2) any dispute between such Seller or its Parent Company and any governmental or regulatory body where damages, fines, penalties and/or other claims could reasonably be expected to be or are in excess of $250,000 (x) against such Seller or Parent Company or (y) where injunctive or other equitable relief is sought against such Seller or Parent Company, (3) any event or condition, which, in any case of (1) or (2) if adversely determined, would have a material adverse effect on (A) the validity or enforceability of this Agreement, (B) the financial condition or business operations of such Seller, or (C) the ability of such Seller to fulfill its obligations under this Agreement or (4) any material adverse change in the business, operations, prospects or financial condition of such Seller, including, without limitation, the insolvency of such Seller or its Parent Company; (vi) Promptly upon becoming available, copies of all financial statements, reports, notices and proxy statements sent by its Parent Company, such Seller or any of such Seller's consolidated subsidiaries in a general mailing to their respective stockholders and of all reports and other material (including copies of all registration statements under the Securities Act of 1933, as amended) filed by any of them with any securities exchange or with the Securities and Exchange Commission or any governmental authority succeeding to any or all of the functions of said Commission; (vii) Promptly upon becoming available, copies of any press releases issued by its Parent Company or such Seller and copies of any annual, quarterly and monthly financial reports and any reports on Form H-(b)12 which its Parent Company or such Seller may be required to file with the OTS or the RTC or comparable reports which a Parent Company or such Seller may be required to file with the FDIC or any other federal banking agency containing such financial statements and other information concerning such Parent Company's or such Seller's business and affairs as is required to be included in such reports in accordance with the rules and regulations of the OTS, the RTC, the FDIC or such other banking agency, as may be promulgated from time to time; (viii) Promptly upon becoming available, copies of any reports any REIT Seller may be required to file with the Internal Revenue Service; (ix) Such supplements to the aforementioned documents and such other information regarding the operations, business, affairs and financial condition of its 22 Parent Company, such Seller or any of such Seller's consolidated subsidiaries as Purchaser may request; and (x) Prior to the date of any purchase of a Mortgage Loan by Purchaser hereunder, a copy of (1) the articles of incorporation, certificate of formation or other organizational documents of such Seller and any amendments thereto certified by the Secretary of State, Comptroller of Currency, Internal Revenue Service or similar official of such Seller's jurisdiction of organization, (2) a copy of such Seller's by-laws, operating agreement or other internal governing documents, together with any amendments thereto, (3) a copy of the resolutions or other internal governing documents adopted by such Seller's Board of Directors or a similar governing body authorizing such Seller to enter into this Agreement, the Electronic Tracking Agreement and the Custodial Agreement and authorizing one or more of such Seller's officers to execute the documents related to this Agreement, the Electronic Tracking Agreement and the Custodial Agreement, (4) a certificate of incumbency and signature of each officer of such Seller executing any document in connection with this Agreement, the Electronic Tracking Agreement and the Custodial Agreement; (5) a certificate reflecting each Authorized Signatory of such Seller, in the form of Exhibit F hereto and (6) one or more opinions to such Seller, in the form of Exhibit G hereto. (b) The consideration received by such Seller upon the sale of each Mortgage Loan will constitute reasonably equivalent value and fair consideration for the ownership interest in the Mortgage Loan. (c) Neither such Seller nor any affiliate thereof will acquire at any time any Mortgage Loan or any other economic interest in or obligation with respect to any Mortgage Loan. (d) Under generally accepted accounting principles ("GAAP") and for federal income tax purposes, such Seller will report each sale of a Mortgage Loan to the Purchaser as a sale of the ownership interest in the Mortgage Loan. Such Seller has been advised by or has confirmed with its independent public accountants that the foregoing transactions will be so classified under GAAP. (e) Such Seller will be solvent at all relevant times prior to, and will not be rendered insolvent by, any sale of a Mortgage Loan to the Purchaser. (f) Such Seller will not sell any Mortgage Loan to the Purchaser with any intent to hinder, delay or defraud any of such Seller's creditors. (g) Such Seller shall comply, in all material respects, with all laws, rules and regulations to which it is or may become subject. (h) Such Seller shall, upon request of Purchaser, promptly execute and deliver to Purchaser all such other and further documents and instruments of transfer, conveyance and assignment, and shall take such other action as Purchaser may require to more effectively to transfer, convey, assign to and vest in Purchaser and to put Purchaser in possession of the 23 property to be transferred, conveyed, assigned and delivered hereunder and otherwise to carry out more effectively the intent of the provisions under this Agreement. (i) Such Seller shall ensure that all Takeout Proceeds paid by Takeout Investor resulting from Takeout Commitments that relate to Mortgage Loans purchased by Purchaser pursuant to the terms of this Agreement are paid to Purchaser by Takeout Investor in accordance with Purchaser's Wire Instructions to such Seller. (j) The consideration received by such Seller upon sale of each Mortgage Loan will constitute reasonably equivalent value and fair consideration for the Mortgage Loan. (k) Such Seller acknowledges that the Purchaser has the right to perform continuing due diligence reviews with respect to the Mortgage Loans, for purposes of verifying compliance with the representations, warranties and specifications made hereunder, or otherwise, and such Seller agrees that upon reasonable (but no less than one (1) Business Day's) prior notice to such Seller, the Purchaser or its authorized representatives will be permitted during normal business hours to examine, inspect, make copies of, and make extracts of, the Mortgage Files and any and all documents, records, agreements, instruments or information relating to such Mortgage Loans in possession, or under the control, of such Seller and/or Custodian. Such Seller also shall make available to the Purchaser a knowledgeable financial or accounting officer for the purpose of answering questions respecting the Mortgage Files and Mortgage Loans. Such Seller and Purchaser further agree that all out-of-pocket costs and expenses incurred by the Purchaser in connection with the Purchaser's activities pursuant to this Section 9(k) shall be paid for by such Seller. (l) Upon request such Seller shall provide Purchaser with a monthly report, which report shall include, among other items, a summary of such Seller's delinquency and loss experience with respect to mortgage loans serviced by such Seller, any Servicer or any designee of either, with respect to any MERS Designated Mortgage Loan, MERS Reports, plus any such additional reports as Purchaser may reasonably request with respect to such Seller's or any Servicer's servicing portfolio or pending originations of mortgage loans. Such Seller shall not cause the Mortgage Loans to be serviced by any servicer other than a servicer expressly approved in writing by Purchaser. (m) On the second Business Day of each month, such Seller shall furnish to Purchaser or shall cause the Servicer to furnish to Purchaser, a remittance report, in hard copy and electronic format acceptable to Purchaser, containing information regarding funds collected during the prior calendar month with respect to its Mortgage Loans. This report shall contain the following information: (i) Mortgage Loan number; (ii) Note Rate; (iii) Remittances allocable to principal and interest; (iv) Paid through date; 24 (v) Mortgage Loan balance; (vi) Delinquency status; (vii) Whether the Mortgaged Property is in foreclosure or has become an real state owned property; (viii) Whether any Mortgagor is the subject of any bankruptcy action; and (ix) Any other information that Purchaser may reasonably request. (n) Such Seller shall pay and discharge all taxes, assessments and governmental charges or levies imposed on it or on its income or profits or on any of its Property prior to the date on which penalties attach thereto, except for any such tax, assessment, charge or levy the payment of which is being contested in good faith and by proper proceedings and against which adequate reserves are being maintained. (o) Such Seller covenants and agrees to take all actions required of it in compliance with the terms of the Electronic Tracking Agreement. (p) Such Seller covenants and agrees that it will not (1) consolidate or merge or enter into any analogous reorganization or transaction with any Person, unless such other Person is an Affiliate of Seller or is engaged in the mortgage banking business and such Seller is the surviving entity; (2) liquidate, wind up or dissolve (or suffer any liquidation or dissolution); (3) cease actively to engage in the business of origination, acquiring or servicing Mortgage Loans or make any other material change in the nature or scope of the business in which such Seller engaged as of the date of this Agreement; (4) sell, assign, lease, convey, transfer or otherwise dispose of (whether in one transaction or a series of transactions) all or any substantial part of such Seller's business or assets, whether now owned or acquired after the date of this Agreement and without the prior written consent of the Purchaser (except in the ordinary course of business or except in a transaction or series of transactions between two or more Sellers); (5) acquire by purchase or in any other transaction all or substantially all of the business or property of, or stock or other ownership interests of, any Person, without the prior written consent of the Purchaser; (6) change its jurisdiction of organization, without the prior written consent of the Purchaser; nor (7) permit any subsidiary of such Seller to do or to take any of the foregoing actions. (q) Each REIT Seller covenants and agrees that it shall at all times continue to be (i) qualified as a real estate investment trust as defined in Section 856 of the Code for so long as the Board of Directors deems it in the best interests of the stockholders of such REIT Seller to remain so qualified and (ii) entitled to a dividends paid deduction under Section 857 of the Code with respect to dividends paid by it with respect to each taxable year for which it claims a deduction on its Form 1120 - REIT filed with the United States Internal Revenue Service for such year, or the entering into by any REIT Seller of any material "prohibited transactions" as defined in Sections 857(b) and 856(c) of the Code. After the occurrence and during the continuation of any monetary default or any default that results in the acceleration or required prepayment of any indebtedness pursuant to the terms of this Agreement or any other agreement 25 between a Seller and Purchaser, no Seller shall make any payment on account of, or set apart assets for, a sinking or other analogous fund for the purchase, redemption, defeasance, retirement or other acquisition of any equity or partnership interest of such Sellers, whether now or hereafter outstanding, or make any other distribution in respect of any of the foregoing or to any shareholder or equity owner of such Seller, either directly or indirectly, whether in cash or property or in obligations of such Seller or any of such Seller's consolidated Subsidiaries. Section 10. Confidentiality. Each Seller hereby acknowledges and agrees that (i) all written or computer-readable information provided by Purchaser to such Seller regarding Purchaser and (ii) the terms of this Agreement (the "Purchaser Confidential Information"), shall be kept confidential and each of their respective contents will not be divulged to any party without Purchaser's consent except to the extent that (i) such Seller deems appropriate to do so in working with legal counsel, auditors, taxing authorities or other governmental agencies or regulatory bodies or in order to comply with any applicable federal or state laws, (ii) any portion of Purchaser Confidential Information is in the public domain other than due to a breach of this covenant, (iii) such Seller deems appropriate in connection with exercising any or all of such Seller's rights or remedies or complying with any obligations under this Agreement. Section 11. Term. This Agreement shall continue in effect until terminated as to future transactions between the related Seller and Purchaser by written instruction signed by either such Seller or Purchaser and delivered to the other, provided that no termination will affect the obligations hereunder as to any of the Mortgage Loans with respect to which Conduit Submission Packages have been delivered to Custodian pursuant to the terms of this Agreement or the Custodial Agreement. Section 12. Exclusive Benefit of Parties; Assignment. This Agreement is for the exclusive benefit of the parties hereto and their respective successors and assigns and shall not be deemed to give any legal or equitable right to any other person, including the Custodian. Except as provided in Section 6, no rights or obligations created by this Agreement may be assigned by any party hereto without the prior written consent of the other parties. Section 13. Amendments; Waivers; Cumulative Rights. This Agreement may be amended from time to time only by written agreement of the Sellers and Purchaser. Any forbearance, failure or delay by either party in exercising any right, power or remedy hereunder shall not be deemed to be a waiver thereof, and any single or partial exercise by Purchaser of any right, power or remedy hereunder shall not preclude the further exercise thereof. Every right, power and remedy of Purchaser shall continue in full force and effect until specifically waived by Purchaser in writing. No right, power or remedy shall be exclusive, and each such right, power or remedy shall be cumulative and in addition to any other right, power or remedy, whether conferred hereby or hereafter available at law or in equity or by statute or otherwise. Section 14. Execution in Counterparts. This Agreement may be executed in any number of counterparts, each of which shall be deemed an original, but all of which shall constitute one and the same instrument. 26 Section 15. Effect of Invalidity of Provisions. In case any one or more of the provisions contained in this Agreement should be or become invalid, illegal or unenforceable in any respect, the validity, legality and enforceability of the remaining provisions contained herein or therein shall in no way be affected, prejudiced or disturbed thereby. Section 16. GOVERNING LAW. THIS AGREEMENT SHALL BE GOVERNED BY AND CONSTRUED IN ACCORDANCE WITH THE LAWS OF THE STATE OF NEW YORK, WITHOUT REGARD TO CONFLICT OF LAWS RULES. Section 17. Notices. Any notices, consents, elections, directions and other communications given under this Agreement shall be in writing and shall be deemed to have been duly given when telecopied or delivered by overnight courier to, personally delivered to, or on the third day following the placing thereof in the mail, first class postage prepaid to, the respective addresses set forth on the cover page hereof for the related Seller and Purchaser, or to such other address as such party shall give notice to the other parties pursuant to this Section 17. Notices to Assignee shall be given to such address as Assignee shall provide to the related Seller in writing. Section 18. Entire Agreement. This Agreement, the Funding Confirmations and the Custodial Agreement contain the entire agreement among the parties hereto with respect to the subject matter hereof, and supersede all prior and contemporaneous agreements among them, oral or written, of any nature whatsoever with respect to the subject matter hereof. Section 19. Costs of Enforcement. In addition to any other indemnity specified in this Agreement, in the event of a breach by the related Seller of this Agreement, the Custodial Agreement or a Takeout Commitment, such Seller agrees to pay the reasonable attorneys' fees and expenses of Purchaser and, when applicable, Assignee incurred as a consequence of such breach. Section 20. Consent to Service. Each party irrevocably consents to the service of process by registered or certified mail, postage prepaid, to it at its address given in or pursuant to Section 16. Section 21. Construction. The headings in this Agreement are for convenience only and are not intended to influence its construction. References to Sections, Exhibits, Schedules and Annexes in this Agreement are to the Sections of, and Exhibits, Schedules and Annexes to this Agreement. The Exhibits are part of this Agreement, and are incorporated herein by reference. The singular includes the plural, the plural the singular, and the words "and" and "or" are used in the conjunctive or disjunctive as the sense and circumstances may require. Section 22. Effect of Amendment and Restatement. Upon the execution of this Agreement by all parties hereto and the delivery of the opinion required by Section 9(a)(x), the Original Mortgage Loan Purchase Agreement shall be amended, restated and superseded in its 27 entirety by this Agreement. The parties hereto acknowledge and agree that (a) the liens and security interests granted under the Original Mortgage Loan Purchase Agreement are in full force and effect and, upon the amendment and restatement of the Original Mortgage Loan Purchase Agreement and the related documents, such liens and security interests secure and continue to secure the payment and performance of Seller's obligations under this Agreement and the related documents, and (b) upon the effectiveness of such amendment and restatement, all outstanding Mortgage Loans under, and as defined in, the Original Mortgage Loan Agreement, shall be deemed to be outstanding as Mortgage Loans hereunder mutatis mutandis, in each case on the terms and conditions set forth in this Agreement. Furthermore, the provisions of this Agreement shall relate back to and shall govern all aspects of all sales of Mortgage Loans by the Sellers to the Purchaser beginning December 18, 2003 pursuant to the purchase facility. [SIGNATURES COMMENCE ON FOLLOWING PAGE] 28 IN WITNESS WHEREOF Purchaser and the Sellers have duly executed this Agreement as of the date and year set forth on the cover page hereof. UBS REAL ESTATE SECURITIES INC. By: /s/ George A. Mangiaracina ------------------------------------- Name: George A. Mangiaracina Title: Managing Director By: /s/ Robert Carpenter ------------------------------------- Name: Robert Carpenter Title: Director AMERICAN HOME MORTGAGE INVESTMENT CORP. By: /s/ Michael Strauss -------------------------------------- Name: Michael Strauss Title: President AMERICAN HOME MORTGAGE ACCEPTANCE, INC. By: /s/ Michael Strauss -------------------------------------- Name: Michael Strauss Title: President AMERICAN HOME MORTGAGE HOLDINGS, INC. By: /s/ Michael Strauss -------------------------------------- Name: Michael Strauss Title: President AMERICAN HOME MORTGAGE CORP. By: /s/ Michael Strauss -------------------------------------- Name: Michael Strauss Title: President COLUMBIA NATIONAL, INCORPORATED By: /s/ Michael Strauss -------------------------------------- Name: Michael Strauss Title: President