Duffly, J.
When Alvan E. Levenson (Levenson) failed to execute certain documents in connection with the financing of a lump sum alimony payment he had agreed to pay his wife when they divorced, he was found in contempt by a judge of the Probate and Family Court and a special master was appointed [430]*430to sign the documents — a promissory note, mortgages, and deeds — in Levenson’s stead. Levenson did not appeal from the contempt judgment. Two years later, on November 21, 1995, he filed in Probate Court a complaint for declaratory judgment, seeking rescission of the documents the master had executed pursuant to the contempt judgment and a declaration that (a) the contempt action was premature; and (b) he had the option to finance his alimony obligation through a financial arrangement with his wife more favorable than the transaction the judge had ordered in the contempt judgment. The Probate Court judge declared the promissory note, mortgages, and deeds null and void, ordered Levenson to execute new loan instruments with reformed terms, and ordered the wife’s attorney’s firm, Kassler & Feuer, P.C., and Curt R. Feuer, an attorney in the firm who had procured the financing for Levenson, to pay Levenson’s attorney’s fees for the declaratory judgment action. A second Probate Court judge reserved and reported to this court the question of the firm’s liability for fees, as the firm was not a party to the declaratory judgment action. The defendants in the Probate Court action appealed from the judgment nullifying the loan documents. Mr. Feuer and the firm as intervener appealed from the order to pay Levenson’s attorney’s fees.
During the pendency of the Probate Court action, Levenson filed a complaint in Superior Court, setting forth numerous claims4 arising generally from the same circumstances. He named the same defendants and, in addition, Kassler & Feuer, PC., and two of its partners, Haskell A. Kassler and Roy A. Cramer. Following a bench trial in Superior Court, judgment entered for the defendants dismissing all counts. Levenson appealed.
[431]*431On motion of the parties, we have consolidated the two appeals. We begin our discussion with the Superior Court case.
I. Superior Court action. Levenson does not challenge the detailed subsidiary findings of the Superior Court,5 which we now summarize.
1. Background facts and proceedings. In bitterly contested divorce proceedings, Levenson and June Levenson, each represented by counsel, argued primarily over the distribution of their real estate interests and the alimony to be paid to June Levenson. A trial on the divorce had commenced, but had not yet concluded, when the parties reached a tentative settlement. Levenson expressed concern about his ability to finance a lump sum payout of alimony, but his wife’s attorney, Mr. Kassler, was of the opinion that financing could be obtained from a client of his firm.6 In a memorandum of understanding executed by the parties, “Option 1” described the private financing arrangement and “Option 2” described an arrangement in which June Levenson was, in essence, the lender. The parties later executed a separation agreement (agreement) superseding the memorandum of understanding, in which Levenson agreed to borrow funds, possibly from a private lender, in order to pay the lump sum alimony, and describing a security arrangement [432]*432with June Levenson to remain in effect only until financing was in place.
On September 9, 1993, the parties with their attorneys appeared in Probate Court with their executed separation agreement. After inquiring of the parties whether they understood the agreement, the Probate Court judge, satisfied with their responses, approved the agreement as fair and reasonable and entered a judgment of divorce nisi that incorporated it. No appeal was taken from the divorce judgment.7 At the conclusion of the divorce hearing, Levenson terminated the services of his attorney and instructed his wife’s attorney, Mr. Kassler, to thereafter contact him directly.
The agreement, which by its terms also survived the divorce judgment as a binding contract, set forth certain obligations with respect to the financing of a $428,000 lump sum payment to June Levenson “in complete satisfaction of [Levenson’s] current and future obligation to pay care, maintenance and support to [June Levenson].” A fundamental purpose of the lump sum payment, which had to be paid within thirty days, was to end the weekly payment of alimony. Paragraph 7(b) of the agreement set forth the terms of the loan transaction and required Levenson to secure the $428,000 obligation by giving a private lender a mortgage on each of three specified properties owned by Levenson. The deeds to the properties would be held in escrow and delivered to the lender in the event of Levenson’s default. As set forth in the agreement, the deeds were “to be in lieu of the lender having to institute any foreclosure proceedings and shall be additional security which has induced the lender to make such a loan.” In the interim, before the private loan was in place (and in the event Levenson was unable to obtain private financing), paragraph 7(c) of the agreement provided that mortgages on these same properties were to be given immediately to June Levenson.
Shortly after the September 9, 1993, divorce hearing, Mr. Kassler asked Mr. Cramer of his law firm to prepare the private lender financing documents, which included a promissory note, [433]*433the mortgages and deeds to Levenson’s three properties, and a trustee’s certificate. These documents provided that the lender was to be Curt Feuer, as trustee of the MB Trust, a Massachusetts realty trust (of which Mr. Feuer was the sole trustee and Mr. Feuer’s client, Michael Bronner, the sole beneficiary).8 The promissory note, in the amount of $571,218,9 had a two-year term and an interest rate of thirteen percent.
Before the documents were signed, Levenson decided that the agreement was, as he told Mr. Cramer during a telephone conversation on September 14, 1993, a “bad deal” for him. By letter dated September 22, Levenson also wrote to June Levenson proposing a settlement with terms entirely different from those in the agreement, but adding that if she chose not to accept his new offer, “as I promised you, I’ll go along with [Mr. Kassler’s] financing.” The documents were to be signed on October 7, at a meeting at Mr. Kassler’s law firm. On that date Levenson refused to look at or sign the documents. Levenson claimed that it was the fact that Mr. Feuer, a member of the law firm that had represented his wife in the protracted divorce proceedings, appeared to be the lender on the documents that caused him to back away from the deal.
The Superior Court judge found that the promissory note contained two errors, but that the errors were made in good faith by Mr. Cramer.10 He further found that Levenson’s “refusal to sign the Promissory Note could not possibly have been based [434]*434on Mr. Cramer’s two drafting errors, because [Levenson] had neither seen the Promissory Note nor learned of its terms” when, on September 14, he declared to Mr. Cramer that it was a bad deal for him and that he would not sign the papers.
June Levenson initiated contempt proceedings against her former husband in Probate Court three days prior to the October 7 meeting, alleging a violation of the provisions in the agreement requiring that he provide her with a mortgage until he had completed the private lending transaction and paid his alimony obligation. When Levenson refused to execute the private lending documents at the October 7 meeting, June Levenson amended her complaint to allege that Levenson had further violated provisions of the agreement when he failed to execute the note and other documents necessary to secure the private loan.
In his answer to the amended complaint for contempt, Levenson claimed he was coerced by his attorney into signing the separation agreement and asked that the agreement be declared null and void. At the Probate Court contempt hearing Levenson, representing himself, argued that the private financing arrangement was a bad deal for him, and sought to revise the transaction. Levenson did not claim that his failure to sign the documents was because they contained errors or were inconsistent with the provisions of the separation agreement.
Following the hearing, a judgment entered holding Levenson in contempt and appointing a special master, pursuant to Mass. R.Dom.Rel.P. 70,11 to sign all documents the agreement obliged Levenson to sign. Levenson did not appeal from the contempt judgment. The special master signed the documents and June [435]*435Levenson received her lump sum payment from the loan proceeds, less her attorney’s fees.
The deeds executed by the special master recited consideration of one dollar and left blank the grantee’s name. The note signed by the special master had the same terms and conditions as the note originally prepared by Mr. Cramer, except that instead of being for $571,218, it was for $580,915.12 Levenson sought no relief under Mass.R.Dom.Rel.P. 60, or otherwise, from any claimed errors in the documents.
The entire unpaid balance of principal of the note became due on November 15, 1995. The Superior Court judge found that Levenson made no effort to pay any part of the principal. As a result of Levenson’s default, Mr. Feuer (as trustee of the MB Mortgage Trust) sought delivery of the deeds to the three properties that had been held in escrow.13
Mr. Feuer and Mr. Cramer agreed that the MB Mortgage Trust should be inserted as the grantee on the deeds where it had been left blank, and that the one dollar consideration should be “whited out” and replaced with what they termed to be the true consideration: the $580,915 balance they determined was due under the promissory note. After recording the conveyance of the three deeds to the properties to the MB Mortgage Trust, Mr. Feuer conveyed all three properties to himself in a single deed, as trustee of the Needham Rehabilitation Trust, a nominee trust Mr. Feuer created the day following Levenson’s default. The sole beneficiary of the new trust was Orsett Properties, Ltd. [436]*436(Orsett), an entity wholly owned by Mr. Feuer.14 The deed was recorded and stated a consideration of $585,915, a figure $5,000 more than the amount of the loan balance at the time Mr. Feuer requested delivery of the deeds.
Now holding record title to all three properties, Mr. Feuer informed commercial tenants leasing space at one of the properties that rents should henceforth be paid to Orsett. Levenson was living in another of the properties and running his business from the third. Mr. Feuer unsuccessfully sought to evict Levenson from both properties Levenson occupied. As of the date of the Superior Court trial, Levenson remained in possession of these two properties paying no rent, real estate taxes, or insurance.
2. Discussion. Levenson appealed from the Superior Court judgment only insofar as it dismissed counts one (intentional interference with contractual relations), two (unfair and deceptive trade practices under G. L. c. 93A), five (wrongful foreclosure), eight (conversion), nine (waste), and ten (intentional infliction of emotional distress). The sole issue of significance in his appeal from this judgment is the dismissal of the claim for wrongful foreclosure.
a. Wrongful foreclosure. Levenson’s wrongful foreclosure claim asserts that the recording of the deeds that had been delivered in escrow improperly circumvented the statutory provisions governing mortgage foreclosure. See G. L. c. 244, § 14.
The defendants, in essence, argue that language in the separation agreement providing that the deeds in escrow were to be transferred to the private lender “in lieu of the lender having to institute any foreclosure proceedings” is a binding reflection of the parties’ intent that requirements under c. 244, § 14, including notice and the right to redeem, would be dispensed with in the event of Levenson’s default. They claim that the agreement [437]*437describes a “deed in lieu” transaction, which has been approved by our appellate courts, and rely on J & W Wall Sys., Inc. v. Shawmut First Bank & Trust Co., 413 Mass. 42 (1992), for the proposition that a deed given in lieu of foreclosure can, in some circumstances, constitute a valid transfer of a real estate interest. However, cases such as J & W Wall Sys., Inc., supra at 43-45, and Moloney v. Boston Five Cents Sav. Bank FSB, 422 Mass. 431 (1996), endorsing the validity of a deed given in lieu of foreclosure, arise under circumstances quite different from those present here. In such cases, after defaulting on a loan, the borrower agrees to deliver to the lender a deed to the property previously pledged as security for the debt. Delivery of such a deed in lieu of foreclosure of a previously executed mortgage encumbering the same property is given in compromise of the parties’ rights and obligations under the mortgage and note (often, but not exclusively, in exchange for release of the lender’s claim to any deficiency between the value of the property and the obligation due under the note). See generally Murray, Deeds in Lieu of Foreclosure: Practical and Legal Considerations, 26 Real Prop. Prob. & Tr. J. 459, 460-472 (1991).15
In contrast, in the instant matter, the deed in lieu was given in advance of any default. When a deed (absolute on its face) is given at the time a debt is incurred for the purpose of securing payment of the debt, “a court of equity will treat the deed according to its true nature as a mortgage.” Fales v. Glass, 9 Mass. App. Ct. 570, 573 (1980). See Allen v. Mutual Acceptance Corp., 350 Mass. 553, 554 (1966) (“Whether a deed absolute in form is an equitable mortgage depends upon the intention of the parties as shown in the circumstances of its negotiation and execution”); Restatement (Third) of Property (Mortgages) § 3.2(b) (1997).
Under the express terms of the Levensons’ separation agree[438]*438ment, the deeds in the present case were intended to serve as additional (or alternative) security for Levenson’s obligations under an anticipated loan transaction. Consistent with the provisions of this agreement, when Levenson borrowed funds from Mr. Feuer as trustee of the MB Mortgage Trust, the deeds were placed in escrow as part of the initial loan transaction. The defendants do not argue, and there is nothing in the terms of the separation agreement or the loan documents to suggest, that a conditional sale of the mortgaged property was intended. In these circumstances, delivery of the deeds constituted the delivery of additional instruments of security for the underlying debt. See Carey v. Rawson, 8 Mass. 159, 160 (1811); Woodward v. Pickett, 8 Gray 617, 618 (1857); Steel v. Steel, 4 Allen 417, 419-420 (1862).
To the extent that language in the agreement suggests the parties intended to circumvent laws governing foreclosure that otherwise would govern the manner in which title to the properties could be transferred, the language is void as against public policy and we give it no effect. “Though it be ever so strongly expressed that the estate shall be absolute if the money is not paid at the day fixed, such stipulation would be void. It does not depend upon the intent of the parties; because it is an intent contrary to the rules of law, which the law will not carry into effect.” Bayley v. Bailey, 5 Gray 505, 510 (1855). See, e.g., First Ill. Natl. Bank v. Hans, 143 Ill. App. 3d 1033, 1038 (1986) (“parties cannot by an express stipulation in the mortgage transform the instrument into an outright conveyance upon default, [thereby] depriving] the mortgagor of his redemptive rights”).
The deeds were equitable mortgages, subject (inter alla) to the statutory requirements of G. L. c. 244, § 14, regarding foreclosure. The judge erred in concluding that because Mr. Feuer’s recording of the deeds was pursuant to the terms of the separation agreement, it was therefore not a wrongful foreclosure.16
b. Remaining claims. Levenson’s claim that Messrs. Kassler [439]*439and Cramer intentionally interfered with his contractual relations assumes, erroneously, that Levenson was entitled to elect between the two “options” that had been provided by the terms of the memorandum of understanding. Breyan v. Breyan, 54 Mass. App. Ct. 372 (2002), cited by Levenson, is inapposite. There, the parties intended to be bound by their memorandum of understanding, whereas here the separation agreement superseded the memorandum. The judge was correct to conclude that Levenson failed to establish that the defendants had intentionally interfered with that agreement.
Likewise, Levenson’s argument that he was entitled to judgment on the G. L. c. 93A claim on the ground that he was lured into signing the separation agreement upon assurances that the “option” language of the memorandum of understanding, although different from the language in the agreement, “was nonetheless operative,” finds no support in the findings.17
We also agree with the judge’s conclusion that the facts of the case do not support the claim of intentional infliction of emotional distress, which required Levenson to show that the conduct of the defendants “was extreme and outrageous, beyond all possible bounds of decency and utterly intolerable in a civilized community.” Tetrault v. Mahoney, Hawkes & Goldings, 425 Mass. 456, 466 (1997), quoting from Payton v. Abbott Labs, 386 Mass. 540, 555 (1982).
There was no error in the dismissal of these claims.18
II. Probate Court action. The Probate Court’s judgment in [440]*440favor of Levenson declared null and void the note, mortgages, and all deeds purporting to transfer legal title to the three properties, initially from Levenson to the MB Mortgage Trust, and then from the MB Mortgage Trust to the Needham Rehabilitation Trust. Levenson was ordered to execute new loan instruments with reformed terms, including the lender’s right to foreclosure proceedings in the event Levenson again defaulted on the loan. The judgment thus effectively restored title in the mortgaged properties to Levenson and removed his default, giving him another eighteen months to pay the newly executed promissory note. All of Levenson’s legal fees and expenses involved in restoring title in Levenson and preparing the new promissory note were declared to be the “sole liability” of Mr. Feuer. In addition, Mr. Feuer individually and Kassler & Feuer, P.C., were ordered to pay Levenson’s attorney’s fees for the declaratory judgment action,19 later determined to be $100,800. The defendants who appeal from the declaratory judgment are the mortgage holder and entities to whom the mortgages were assigned: Mr. Feuer, individually and as trustee of the MB Mortgage Trust and the Needham Rehabilitation Trust; and Orsett Properties, Ltd. The defendant Mr. Feuer, and the intervener, Kassler & Feuer, P.C., also challenge the judgment insofar as it orders them to pay Levenson’s attorney’s fees for the declaratory judgment action. The Probate Court reserved and reported to us the question whether Kassler & Feuer, P.C., not a party to the proceedings below, could be assessed legal fees.
1. Deed in lieu of foreclosure. To the extent that the declaratory judgment action sought a determination regarding the validity of the deed transfers occurring in November, 1995, the action was properly brought. For the reasons we have discussed, see part I, supra, the Probate Court judge was correct to [441]*441conclude that applicable foreclosure laws should not have been avoided and on this basis to declare the deeds null and void.
2. Reformation of financing documents. As we have earlier observed, Levenson neither appealed from the contempt judgment nor sought postjudgment relief. It was not open to Levenson to collaterally attack the contempt judgment in the declaratory judgment proceeding, and thus the Probate Court’s findings undermining the propriety of the contempt proceeding — including the finding that “[a]n improper contempt complaint was brought against [Levenson],” should not have been made.20 Nor should the judge have declared the loan documents signed by the special master null and void, as any infirmities in these documents could have been the subject of direct attack. See Svenson v. First Natl. Bank of Boston, 5 Mass. App. Ct. 440, 446-447 (1977) (plaintiff who took no appeal from Probate Court allowance of certain accounts cannot collaterally attack decrees by means of petition for declaratory judgment); Pavlik v. Dmytryck, 6 Mass. App. Ct. 915, 916 (1978) (action in Land Court was impermissible collateral attack on Probate Court judgment, even assuming that Probate Court had no authority to order conveyance of plaintiff’s interest in land, where final judgment had entered, and rights of parties were thus “limited to appeal ... or other methods of direct attack”); Lombardo v. Gerard, 32 Mass. App. Ct. 589, 599-600 (1992).
Nonetheless, the defendants do not contest the judgment to the extent that it corrected computational errors and conformed the terms of the note and mortgages to the parties’ understandings as set forth in paragraph 7(b) of the separation agreement. The Probate Court judge found that the computation that resulted in a principal sum due under the note in the amount of $580,915 included (in addition to the alimony obligation, two years of prepaid interest, and a prepayment penalty equal to six months of interest) a sum of $6,965.26, reflecting nine percent interest on the $428,000 for the period from September 9 to November 16, 1993, that was not required to be paid under the separation agreement. Further, the note should not have provided [442]*442for a duplicative thirteen percent interest to be paid on the two years’ prepaid interest. As the Probate Court judge also found, the note improperly included fees to be paid to Kassler & Feuer, P.C., in the amount of $1,171.25, that had been incurred by June Levenson in connection with the contempt action; and the mortgage holder was incorrectly identified as the “MB Trust,” whereas the entity is correctly identified as the “MB Mortgage Trust.”
Because the defendants have agreed to the Probate Court’s correction of these errors, we shall allow that part of the judgment to stand. However, the Probate Court judge also found that the provisions of paragraph 7(b) were no longer binding due to these errors. He determined that, as a consequence, paragraph 7(c) (which made June Levenson the lender and contained other terms differing from those in paragraph 7[b]) “became operable.” He therefore declared the note and mortgages null and void and directed Levenson to execute a new promissory note and mortgages payable to Mr. Feuer as trustee of the MB Mortgage Trust, but otherwise reflecting the terms in paragraph 7(c) of the agreement (including a term of eighteen months21 and an interest rate of nine percent). This was error. As we have stated, supra, the proper vehicle for challenging the documents at issue was a motion for some kind of post-judgment relief or an appeal from the contempt judgment. We vacate and modify the judgment to the extent that it nullified the note and mortgages signed by the special master and ordered reformation inconsistent with paragraph 7(b) of the separation agreement.
3. Attorney’s fees. The judgment also provided that Levenson was entitled to his reasonable fees and costs for the declaratory judgment action. Following further proceedings, the Probate Court determined the amount of Levenson’s reasonable at[443]*443tomey’s fees to be $100,800,22 the payment thereof to “be the sole responsibility of the firm of Kassler & Feuer, P.C. and Curt R. Feuer.” Noting, however, that Kassler & Feuer, P.C., “was never formally named as a party to the proceedings,” the Probate Court reserved and reported to the Appeals Court the following question: “whether legal fees may be assessed against Kassler & Feuer, P.C.” Mr. Feuer appealed from the judgment against him. Kassler & Feuer, P.C., was permitted to intervene in this appeal in order to challenge the judgment and to address the question reserved and reported to the Appeals Court.
The Probate Court judge found that the court had the authority to award counsel fees pursuant to G. L. c. 231 A, § 7, and that the “case involved the kind of ‘exceptional circumstances’ which would warrant the imposition of [attorney’s] fees [because Levenson] has been put to the expense of legal fees in consequence of the wrongful conduct of the Defendant.” In support of her finding, the judge cited two cases where an award of attorney’s fees had been upheld: Wheeler v. Hanson, 161 Mass. 370 (1894) (malicious prosecution), and M.F. Roach Co. v. Provincetown, 355 Mass. 731, 732-733 (1969) (fees for third-party suit upheld where tortious conduct required plaintiff to sue third party to protect his rights). It appears from the judge’s reliance on these cases that the award of fees was based upon the court’s finding in the declaratory judgment action that “[a]n improper contempt complaint was brought against [Levenson].” However, as we have discussed, it was not open to Levenson to collaterally attack the contempt proceeding, nor was the contempt complaint improperly brought.23 Viewed in that light, this matter reduces to the question whether parties to a real [444]*444estate transaction may waive the provisions of the foreclosure statute, and litigation on that basis does not warrant the award of attorney’s fees. See, e.g., Chartrand v. Riley, 354 Mass. 242, 244 (1968), citing MacNeil Bros. v. Cambridge Sav. Bank, 334 Mass. 360 (1956) (award of attorney’s fees reversed in “suit to redeem real estate from mortgages”).24
The judge also found that the court had the power to assess fees against Mr. Feuer as sanctions. However, Mr. Feuer was not acting in his capacity as an attorney representing any party before the court either in the contempt action or in the declaratory judgment action. Contrast Avelino-Wright v. Wright, 51 Mass. App. Ct. 1 (2001); Ramsdell v. Doliber, 59 Mass. App. Ct. 446 (2003). For this reason, if no other, Mr. Feuer could not be sanctioned in these circumstances.25
III. Conclusion. 1. Superior Court action. We reverse the judgment as to count five, and remand to the Superior Court for further proceedings consistent with this opinion, including an assessment of actual damages (as may be offset by amounts determined to be due from Levenson). In all other respects the judgment is affirmed.
2. Probate Court action. The order of August 21, 2001, awarding Levenson attorney’s fees in the amount of $100,800, is reversed. We decline to answer the reported question.
The declaratory judgment is affirmed in part, reversed in part, and vacated and remanded in part. Insofar as it awards Levenson attorney’s fees for the declaratory judgment action, the [445]*445judgment is reversed. The judgment is affirmed as to its determination of computational errors in the loan instruments, and insofar as it declares null and void the deeds executed by the special master and the deed executed by Mr. Feuer conveying title to all three properties to himself as trustee of the Needham Rehabilitation Trust.26 Insofar as it declares null and void the promissory note and mortgages, and orders Levenson to execute new loan instruments, the judgment is vacated and the matter is remanded to the Probate Court for modification of the judgment so as to reform rather than nullify the note and mortgages: the amount secured by the promissory note and mortgages shall be adjusted to reflect the computational errors determined by the Probate Court, and references to the “MB Mortgage Trust” shall be substituted for the “MB Trust” on the note and mortgages. The interest rate shall remain at thirteen percent and the maturity date of the note shall remain November 15, 1995. The modified judgment shall reflect the book and page recording references of the affected instruments and the certificate of title number of any affected registered land and shall order that the parties record with the appropriate registries of deeds, and file with the appropriate registry district of the Land Court, certified copies of said modified judgment.
In all other respects, the judgment is affirmed.
So ordered.