Section 21. If all the claims against the property covered by the lien were ascertained at the time of ordering the sale and if the proceeds of the sale are sufficient therefor, the court may order the officer to distribute them, after deducting all lawful charges and expenses of such officer, to and among the several creditors to the amount of their respective debts, with interest, or, if insufficient, to distribute the same among the lien creditors pursuant to this chapter in proportion to the amount due to each, regardless of the date upon which each such lien creditor filed a notice of contract, except that claims of lien creditors under sections 2C and 2D shall be paid only after payment in full of the claims of other lien creditors pursuant to this chapter. If all the claims were not ascertained at the time of ordering the sale or other sufficient cause is shown, the court may order the officer to bring the proceeds of the sale into court to be disposed of according to its decree. If the whole cannot be conveniently distributed at one time, the court may make successive orders of distribution. If there is a surplus of the proceeds of the sale after making all payments before mentioned, it shall be paid over to the owner of the property; but, before it is so paid over, it may be attached or taken on execution in like manner as proceeds from a sale on execution. Notwithstanding the foregoing, proceeds of the sale shall be distributed to mortgagees entitled to priority pursuant to this chapter in the amounts given priority thereunder, before proceeds are distributed to creditors whose liens arise under this chapter.
Structure Massachusetts General Laws
Part III - Courts, Judicial Officers and Proceedings in Civil Cases
Title IV - Certain Writs and Proceedings in Special Cases
Chapter 254 - Liens on Buildings and Land
Section 1 - Labor Performed; Limitation on Lien; Filing
Section 2 - Written Contract; Notice; Time for Filing; Form
Section 2b - Termination of Written Contract; Notice; Filing; Form; Certified Mail
Section 2c - Design Professional's Lien Upon Real Property; Form and Filing of Notice
Section 2d - Subcontractor of Design Professional; Lien; Form and Filing of Notice
Section 5 - Enforcement of Lien; Procedure
Section 5a - Court Order Authorizing Sale of Real Estate; Procedure
Section 6 - Public Property; Exemption
Section 7 - Mortgages; Invalidity of Subsequent Liens
Section 8 - Statement of Amount Due; Time for Filing; Dissolution of Lien
Section 9 - Notice or Statement; Public Inspection; Recording
Section 10 - Dissolution by Notice
Section 11 - Action to Enforce Lien; Time to Commence; Validity of Lien
Section 12 - Written Contract; Recording of Bond; Form; Enforcement
Section 14 - Dissolution by Bond Recording; Labor and Materials; Form of Bond
Section 15 - Dissolution by Judgment
Section 15a - Application to Court for Order Ruling on or Discharging Lien
Section 17 - Claims; Allowance
Section 20 - Redemption; Limitation
Section 21 - Distribution of Assets
Section 23 - Original Owner; Death or Conveyance of Interest; Action to Enforce Lien
Section 24 - Death of Creditor; Effect
Section 25 - Estate Less Than Fee Simple; Effect of Sale
Section 27 - Written Contract; Form of Notice
Section 28 - Subcontractor; Written Contract; Notice; Filing; Form
Section 29 - Laws Applicable to Sec. 27 or 28
Section 30 - Recording; Duty of Register of Deeds
Section 31 - Apportionment; Priority; Proceedings; Public Contracts
Section 32 - Void and Unenforceable Covenants, Promises, etc.; Exceptions
Section 33 - Mortgagee's Right to Withhold Funding, Financing or Payment for Labor and Materials