Document:

<PAGE>

                                                                    Exhibit 10.2

                 SIXTH AMENDMENT TO SECOND AMENDED AND RESTATED
                           NOTE AGREEMENT AND CONSENT

THIS SIXTH AMENDMENT TO SECOND AMENDED AND RESTATED

NOTE AGREEMENT AND CONSENT (this "AMENDMENT"), dated as of June 1, 2000, is made
by and among The Peregrine Real Estate Trust, formerly known as Commonwealth
Equity Trust and d.b.a. WinShip Properties (the "COMPANY") and each of the
noteholders party to the Senior Credit Agreement (as defined below)
(individually, a "NOTEHOLDER" and, collectively, the "NOTEHOLDERS").

                                 R E C I T A L S

WHEREAS, the Company and the Noteholders are parties to the Second Amended and
Restated Note Agreement dated as of September 27, 1994 (as amended by that
certain First Amendment dated as of February 16, 1995, Second Amendment dated as
of December 4, 1997, Third Amendment dated as of May 1, 1998, Fourth Amendment
dated as of June 30, 1998 and Fifth Amendment dated as of February 15, 1999, the
"SENIOR CREDIT AGREEMENT"); and

WHEREAS, the Noteholders wish to amend the Senior Credit Agreement upon the
terms and conditions set forth herein;

NOW, THEREFORE, for good and valuable consideration, the receipt and sufficiency
of which are hereby acknowledged, the Company and the Noteholders agree to amend
the Senior Credit Agreement as follows:

     DEFINED TERMS. Capitalized terms used but not defined in this Amendment
     shall have the meanings assigned to such terms in the Senior Credit
     Agreement.

     AMENDMENT TO SECTION 2.3(B) OF THE SENIOR CREDIT AGREEMENT. SECTION 2.3(B)
     of the Senior Credit Agreement is hereby amended to read in its entirety as
     follows:

               "(b) Payment of Interest; Interest Deferral Notes. Interest on
          the Notes is payable quarterly commencing October 1, 1994. Interest
          shall be computed on the basis of a 360 day year/actual days elapsed.
          If (i) Company does not achieve positive Net Cash Flow for the most
          recent three month consecutive period of the Company for which
          financial statements are available preceding the applicable interest
          payment date or (ii) the Company is otherwise prohibited from making
          an interest payment on the Notes pursuant to the provisions of SECTION
          7.12 of the New Credit Line as in effect on the date hereof, the
          Company shall, and at any other time, at the option of the Company,
          the Company may, in lieu of paying interest on the Notes in cash,
          execute and deliver to each Noteholder on or before any interest
          payment date, one or more promissory notes in the form of the

                                       1

<PAGE>

          promissory note attached hereto as EXHIBIT C (each of which shall be
          an "Interest Deferral Note") in a principal amount equal to the sum of
          interest due to such Noteholder on such interest payment date and
          maturing on the Maturity Date. Each Interest Deferral Note shall bear
          interest at a rate of 8.5% per annum and, on overdue payments, at the
          Default Rate as provided in SECTION 2.3(D). If, upon occurrence of the
          events set forth in this SECTION 2.3(b), Company delivers Interest
          Deferral Notes to any Noteholder, Company shall deliver Interest
          Deferral Notes to all Noteholders and shall not pay cash interest to
          any Noteholder."

     FORM OF INTEREST DEFERRAL NOTE. The Form of Interest Deferral Note attached
     to the Senior Credit Agreement as Exhibit C shall be amended to read in its
     entirety as set forth in Annex A attached hereto.

     REPRESENTATIONS AND WARRANTIES. Each of the parties hereto represents and
     warrants that (a) the execution, delivery and performance of this Amendment
     have been duly authorized by all necessary corporate action on behalf of
     such party and (b) this Amendment constitutes the legal, valid and binding
     obligation of such party. The Company represents and warrants to the
     Noteholders that prior to and after giving effect to this Amendment, no
     Default or Event of Default has or shall have occurred and be continuing.

     EFFECT OF AMENDMENT. The Senior Credit Agreement is modified only by the
     express provisions of this Amendment, and shall otherwise remain in full
     force and effect and is hereby ratified and confirmed by the Company in all
     respects.

     WAIVER OF SHAREHOLDER AND TRUSTEE LIABILITY. This Amendment is made by the
     undersigned, not individually, but in his capacity as Chief Executive
     Officer of the Company and Trustee under that certain Restated Declaration
     of Trust of the Company, and is hereby made a part hereof, and is
     enforceable only against, and is payable out of, the Company property held
     thereunder, and any and all personal liability of the Trustees, their duly
     authorized agents, and the shareholders of the Company is expressly waived.

     ENTIRE AGREEMENT. This Amendment constitutes the complete agreement of the
     parties with respect to the subject matters referred to in this Amendment
     and supersedes all prior or contemporaneous negotiations, promises,
     covenants, agreements or representations of every nature whatsoever with
     respect to such subject matters, all of which become merged and finally
     integrated into this Amendment.

     ADDITIONAL ASSURANCES. The parties agree that they shall take such actions
     and execute and deliver such documents as are reasonably required to
     effectuate the purposes of this Amendment, including, without limitation,
     executing and delivering such reconveyance and termination documentation as
     is required to release any and all liens securing the obligations under the
     Senior Credit Agreement.

     SUCCESSORS AND ASSIGNS. This Amendment shall be binding upon and inure to
     the benefit of the parties to this Amendment and their respective
     successors and permitted assigns.

     GOVERNING LAW; SUBMISSION TO JURISDICTION. THIS AMENDMENT SHALL BE GOVERNED
     BY, AND CONSTRUED IN ACCORDANCE WITH, THE LAW OF

                                       2

<PAGE>

     THE STATE OF CALIFORNIA. EACH OF THE PARTIES TO THIS AMENDMENT HEREBY
     SUBMITS TO THE NONEXCLUSIVE JURISDICTION OF THE UNITED STATES DISTRICT
     COURT FOR THE CENTRAL DISTRICT OF CALIFORNIA AND OF ANY CALIFORNIA STATE
     COURT SITTING IN LOS ANGELES, CALIFORNIA, FOR THE PURPOSES OF ALL LEGAL
     PROCEEDINGS ARISING OUT OF OR RELATING TO THIS AMENDMENT OR THE
     TRANSACTIONS CONTEMPLATED BY THIS AMENDMENT. EACH OF THE PARTIES TO THIS
     AMENDMENT IRREVOCABLY WAIVES, TO THE FULLEST EXTENT PERMITTED BY APPLICABLE
     LAW, ANY OBJECTION WHICH IT MAY NOW OR HEREAFTER HAVE TO THE LAYING OF THE
     VENUE OF ANY SUCH PROCEEDING BROUGHT IN SUCH A COURT AND ANY CLAIM THAT ANY
     SUCH PROCEEDING BROUGHT IN SUCH A COURT HAS BEEN BROUGHT IN AN INCONVENIENT
     FORUM.

     WAIVER OF JURY TRIAL. EACH OF THE PARTIES TO THIS AMENDMENT HEREBY
     IRREVOCABLY WAIVES, TO THE FULLEST EXTENT PERMITTED BY LAW, ANY AND ALL
     RIGHT TO TRIAL BY JURY IN ANY LEGAL PROCEEDING ARISING OUT OF OR RELATING
     TO THIS AMENDMENT OR THE TRANSACTIONS CONTEMPLATED HEREBY.

     COUNTERPARTS. This Amendment may be executed in any number of counterparts,
     all of which taken together shall constitute one and the same instrument
     and any of the parties to this Amendment may execute this Amendment by
     signing any such counterpart.

                                       3

<PAGE>

IN WITNESS WHEREOF, the parties have caused this Amendment to be duly executed
and delivered as of the day and year first above written.

                                    COMPANY

                                    THE PEREGRINE REAL ESTATE TRUST,
                                    (aka Commonwealth Equity Trust, and d.b.a.
                                    WinShip Properties)

                                    By: /s/ ROGER D. SNELL
                                        -------------------------------------
                                        Name:   Roger D. Snell
                                        Title:  President and Chief Executive
                                                Officer

                                       4

<PAGE>

                                   NOTEHOLDERS

                                 TCW SPECIAL CREDITS FUND IV

                                   By:   TCW Special Credits,
                                   Its:  General Partner

                                         By:  TCW Asset Management Company,
                                         Its: Managing General Partner

                                   By:  /s/ RICHARD MASSON
                                        --------------------------------------
                                        Name: Richard Masson
                                        Title: Authorized Signatory

                                   By:  /s/  MATTHEW S. BARRETT
                                        --------------------------------------
                                        Name: Matthew S. Barrett
                                        Title: Authorized Signatory

                                 TCW SPECIAL CREDITS PLUS FUND

                                   By:  TCW Special Credits,
                                   Its:  General Partner

                                         By:  TCW Asset Management Company,
                                         Its: Managing General Partner

                                   By: /s/ RICHARD MASSON
                                       ---------------------------------------
                                       Name: Richard Masson
                                       Title: Authorized Signatory

                                   By: /s/  MATTHEW S. BARRETT
                                       ---------------------------------------
                                       Name: Matthew S. Barrett
                                       Title: Authorized Signatory

                                       5

<PAGE>

                                   TCW SPECIAL CREDITS TRUST IV

                                   By: Trust Company of the West, Trustee

                                   By:  /s/ RICHARD MASSON
                                        --------------------------------
                                        Name: Richard Masson
                                        Title: Authorized Signatory

                                   By: /s/  MATTHEW S. BARRETT
                                       ---------------------------------------
                                       Name: Matthew S. Barrett
                                       Title: Authorized Signatory

                                   TCW SPECIAL CREDITS TRUST IVA

                                   By:   Trust Company of the West, Trustee

                                   By:  /s/ RICHARD MASSON
                                        --------------------------------
                                        Name: Richard Masson
                                        Title: Authorized Signatory

                                   By: /s/  MATTHEW S. BARRETT
                                       ---------------------------------------
                                       Name: Matthew S. Barrett
                                       Title: Authorized Signatory

                                       6

<PAGE>

                                   OCM REAL ESTATE OPPORTUNITIES FUND A, L.P.

                                   By:  Oaktree Capital Management, LLC
                                   Its:  General Partner

                                         By: /s/ RICHARD MASSON
                                             ---------------------------------
                                             Name: Richard Masson
                                             Title: Principal

                                         By: /s/ LISA ARAKAKI
                                             --------------------------------
                                             Name: Lisa Arakaki
                                             Title: Assistant Vice President-
                                                    Legal

                                   OCM REAL ESTATE OPPORTUNITIES FUND B, L.P.

                                   By:  Oaktree Capital Management, LLC
                                   Its:  General Partner

                                         By: /s/ RICHARD MASSON
                                             ---------------------------------
                                             Name: Richard Masson
                                             Title: Principal

                                         By: /s/ LISA ARAKAKI
                                             --------------------------------
                                             Name: Lisa Arakaki
                                             Title: Assistant Vice President-
                                                    Legal

                                       7

<PAGE>

                                   GRYPHON DOMESTIC VII, LLC SEPARATE ACCOUNT

                                   By:  Oaktree Capital Management, LLC
                                   Its:  Investment Manager

                                         By: /s/ RICHARD MASSON
                                             ---------------------------------
                                             Name: Richard Masson
                                             Title: Principal

                                         By: /s/ LISA ARAKAKI
                                             --------------------------------
                                             Name: Lisa Arakaki
                                             Title: Assistant Vice President-
                                                    Legal

                                   WEYERHAEUSER COMPANY MASTER RETIREMENT TRUST

                                         By:  TCW Special Credits,
                                         Its:  Investment Manager

                                         By:  TCW Asset Management Company
                                         Its:   Managing General Partner

                                         By: /s/ RICHARD MASSON
                                             ---------------------------------
                                             Name: Richard Masson
                                             Title: Authorized Signatory

                                         By: /s/  MATTHEW S. BARRETT
                                             ---------------------------------
                                             Name: Matthew S. Barrett
                                             Title: Authorized Signatory

                                       8<PAGE>

                                  Exhibit 10.13

November 6, 2000

BrainTech, Inc.
102-930 West 1st Street
North Vancouver, B.C.
V7P 3N4

ATTENTION:  OWEN JONES

Dear Owen:

RE:  LETTER AGREEMENT ("AGREEMENT") REGARDING USE OF OFFICE SPACE AND OFFICE
     SERVICES PROVIDED BY SIDEWARE SYSTEMS INC. ("SIDEWARE") TO BRAINTECH, INC.
     ("BRAINTECH")

The purpose of this letter is to set out the terms and conditions of the
Agreement between Sideware and Braintech regarding Braintech's use of office
space ("Office Space") and office services ("Office Services") provided by
Sideware at 930 West 1st Street, Suite 102, North Vancouver, B.C. ("Sideware's
Office").

Braintech is in the midst of moving from Sideware's Office to new office space,
as well as hiring its own office personnel to provide office services solely for
the benefit of Braintech. Sideware wishes to accommodate Braintech during its
transition period to its new office space by allowing Braintech to continue to
occupy the Office Space at Sideware's Office and to use the Office Services
already provided by Sideware to Braintech at Sideware's Office. Upon BrainTech
ceasing to use any portion of Sideware's Office, Sideware also agrees to
reimburse to BrainTech the sum of US$41,430.00, representing the undepreciated
amount that Braintech contributed to the cost of leasehold improvements at
Sideware's Office, on the terms and conditions set out in this Agreement. In
exchange for use of the Office space and Office Services, Braintech and Sideware
have agreed that Sideware will deduct the amount Braintech is required to pay to
Sideware for use of the Office Space and the Office Services from the sum of
US$41,430.00.

Based on the foregoing, Sideware and Braintech agree as follows:

     1.   TRANSITION PERIOD

     The term of this Agreement is referred to herein as the "Transition
     Period", and will be the period during which BrainTech continues to utilize
     either the Office Space or the Office Services in accordance with this
     Agreement. Sideware and Braintech agree that the Transition Period will not
     exceed six (6) calendar months starting from November 1, 2000.

                                     PAGE 1
<PAGE>

     2.   OFFICE SPACE & OFFICE SERVICES

     During the Transition Period, Sideware and Braintech agree that:

          a.   Owen Jones, Ted White, Chantal Murata and Vince Taylor, employees
               of Braintech, will be entitled to continue to occupy the Office
               Space they presently use at Sideware; and

          b.   Until Braintech requests that Sideware cease doing so in
               accordance with section 3, Sideware will provide Braintech with
               the following Office Services:

               i.   Reception Services;
               ii.  Accounting Services; and
               iii. Investor Relations Services.

                    (collectively defined as the "Office Services" and
                    individually as the "Reception Services", "Accounting
                    Services" and "Investor Relations Services".)

     3.   PAYMENT FOR OFFICE SPACE & OFFICE SERVICES

          a.   Subject to 3(b) and 3(c) below and unless Braintech notifies
               Sideware prior to the first day of any calendar month that
               Braintech no longer requires use of the Office Space or any of
               the Office Services described in 2(b) above, Braintech will pay
               to Sideware the following fees per month for use of the Office
               Space and each of the Office Services:

<TABLE>
<S>                                                   <C>
               i.   Office Space                      $1,000.00
               ii.  Reception Services                $  650.00
               iii. Accounting Services               $3,500.00
               iv.  Investor Relations Services       $2,500.00
</TABLE>

                    (collectively defined as the "Fees" and individually as a
                    "Fee")

          b.   Fees payable by BrainTech pursuant to subsection a. will be
               deducted from the sum of US$41,430.00, the undepreciated amount
               Braintech contributed to the cost of the leasehold improvements
               at Sideware's Office.

          c.   Upon termination of this Agreement, Sideware and Braintech agree
               to do the following:

               i.   If the sum of all of the Fees owed by Braintech to Sideware
                    for use of the Office Space and any of the Office Services
                    during the Transition Period is greater than US$41,430.00,
                    then Braintech will pay to Sideware the difference between
                    the two amounts; or

                                     PAGE 2
<PAGE>

               ii.  If the sum of all of the Fees owed by Braintech to Sideware
                    for use of the Office Space and any of the Office Services
                    during the Transition Period is less than US$41,430.00, than
                    Sideware will pay to Braintech the difference between the
                    two amounts.

4.   TERMINATION

Sideware or Braintech may terminate this Agreement by giving the other party
written notice not less than five (5) business days before such termination
occurs. Such written notice must be delivered by courier or by facsimile to the
address provided above by Sideware and Braintech. If no such notice is given,
this Agreement will terminate automatically when BrainTech ceases to use the
Office Space and all of the Office Services.

5.   FURTHER ASSURANCES

Sideware and Braintech shall execute all documents and do all further things
necessary or reasonably required to give effect to this Agreement.

6.   ENUREMENT

This Agreement enures to the benefit of Sideware and Braintech and their
successor and assigns and is binding upon Sideware, Braintech and each of their
successors and assigns.

7.   ACTING IN GOOD FAITH

Both parties agree that they will exercise their respective rights under this
Agreement in good faith and in a commercially reasonable manner.

8.   NO ASSIGNMENT BY BRAINTECH

BrainTech may not assign any of its rights under this Agreement.

Yours truly,                          Accepted:

Sideware Systems Inc.                 BrainTech, Inc.
  Per:                                 Per:

"Grant Sutherland"                    "Owen Jones"
Grant Sutherland                      Owen Jones

                                     PAGE 3

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