In this case we must determine whether a plaintiff has standing to maintain a try title action under G. L. c. 240, §§ 1-5, where he is in physical possession of real property but his chain of title rests on a foreclosure sale conducted by someone other than “the mortgagee or his executors, administrators, successors or assigns.” G. L. c. 183, § 21 (statutory power of sale). See G. L. c. 244, § 14 (procedure for foreclosure under power of sale). On his own motion, a Land Court judge determined that the plaintiff, Francis J. Bevilacqua, III, “holds no title to the property at 126-128 Summer Street in Haverhill” and thus lacks standing to bring a try title action. The judge dismissed the complaint with prejudice and Bevilacqua appealed. We granted Bevilacqua’s application for direct appellate review and now affirm the dismissal of his complaint but conclude that such dismissal should have been entered without prejudice. 1
1.
Procedural background.
This case comes before us on a highly unusual procedural footing. The respondent, Pablo Rodriguez, has not been located and accordingly has not entered an appearance. As a result, it fell to the Land Court judge to raise the issue of Bevilacqua’s standing under G. L. c. 240, § 1. See Mass. R. Civ. P. 12 (h) (3),
In considering the appropriate procedure, we note that a court’s sua sponte motion to dismiss for lack of subject matter jurisdiction is analogous to a party’s motion to dismiss under either Mass. R. Civ. R 12 (b) (1) or (6),
On March 18, 2005, Pablo Rodriguez granted a mortgage on the property to Mortgage Electronic Registration Systems, Inc. (MERS), as nominee for Finance America, LLC. The mortgage was recorded at the Southern Essex registry of deeds (registry). As of June 29, 2006, MERS had not assigned the mortgage to U.S. Bank National Association (U.S. Bank), but on that date, U.S. Bank executed a foreclosure deed referencing the mortgage and purporting to transfer the property pursuant to a foreclosure sale from U.S. Bank (as trustee under a trust that is not further described) to U.S. Bank “as Trustee under the securitization Servicing Agreement dated as of July 1, 2005 Structured Asset Securities Corporation Structure Asset Investment Loan Trust Mortgage Pass Through Certificates, Series 2005-HEI.” Nearly one month later, on July 21, 2006, MERS assigned the mortgage to U.S. Bank in an assignment of mortgage recorded at the registry. A “confirmatory foreclosure deed” was then granted on October 9, 2006, by U.S. Bank to U.S. Bank as trustee under the servicing agreement. Eight days later, on October 17, 2006, U.S. Bank “as Trustee” granted a quitclaim deed to Bevilacqua.
On April 12, 2010, Bevilacqua filed a petition to compel Rodriguez to try title to the property. In his complaint, Bevilacqua claimed to reside at the property and to hold record title. Because of the fact that MERS had not assigned the mortgage to U.S. Bank at the time of the foreclosure, Bevilacqua alleged that *766 there is a cloud on his title in the form of “the possibility of an adverse claim by Rodriguez against Bevilacqua’s title to the [property.”
2.
Statutory background.
Bevilacqua seeks an order that either compels Rodriguez to bring an action to try his title or forever bars him from enforcing his adverse claims to the property. Try title actions under G. L. c. 240, §§ 1-5, are within the exclusive original jurisdiction of the Land Court. G. L. c. 185, § 1
(d).
If Bevilacqua cannot satisfy the jurisdictional requirements of the statute, then the Land Court is without subject matter jurisdiction and the petition must be dismissed. See
Boston Edison Co.
v.
Boston Redevelopment Auth.,
The statute states, in relevant part:
“If the record title of land is clouded by an adverse claim, or by the possibility thereof, a person in possession of such land claiming an estate of freehold therein . . . may file a petition in the land court stating his interest, describing the land, the claims and the possible adverse claimants so far as known to him, and praying that such claimants may be summoned to show cause why they should not bring an action to try such claim.”
G. L. c. 240, § 1. There are thus two steps to a try title action: the first, which requires the plaintiff to establish jurisdictional facts such that the adverse claimant might be “summoned to show cause why [he] should not bring an action to try [his] claim,” and the second, which requires the adverse claimant either to disclaim the relevant interest in the property or to bring an action to assert the claim in question. 3 Id. See Blanchard v. Lowell, 177 Mass. 501, 504-505 (1901). The establish *767 ment of jurisdictional facts, although essential in all cases, is thus a matter of particular salience in the initial stage of a try title action.
There appear to be two jurisdictional facts that must be shown to establish standing under G. L. c. 240, § 1. First, it is clear on the face of the statute that only “a person in possession” of the disputed property may maintain a try title action.
Id.
Second, although less obviously clear, a plaintiff must hold a “record title” to the land in question.
Blanchard
v.
Lowell, supra
at 504.
Arnold
v.
Reed,
Before analyzing whether Bevilacqua has demonstrated the existence of record title, and in light of the fact that it has been more than a century since this court last examined standing under G. L. c. 240, §§ 1-5, we first consider the history and purposes of the statute. 5 The initial try title statute was enacted in 1851 and provided:
“Any person in possession of real property, claiming an *768 estate of freehold . . . may file a petition in the supreme judicial court, setting forth his estate . . . and averring that he is credibly informed and believes, that the respondent makes some claim adverse to the estate of the petitioner, and praying that he may be summoned to show cause, why he should not bring an action to try the alleged title, if any.”
St. 1851, c. 233, § 66. Prior to enactment of this statute, the principal means of trying title to land was the writ of entry, which permitted a plaintiff to “obtain possession of real estate from a disseisor who is in possession and holds the demandant out.”
Mead
v.
Cutler,
Under the early versions of the try title statute the sole jurisdictional requirement was “actual possession and taking of profits” from the land.
Id.
at 152. See St. 1873, c. 178; St. 1852, c. 312, § 52; St. 1851, c. 233, § 66. Pursuant to these statutes, record or legal title to the property was irrelevant. See
Orthodox Congregational Soc’y
v.
Greenwich,
These early enactments were repealed in 1893, however, and the modem form of the statute was adopted. St. 1893, c. 340. One of the principal amendments was the addition of an opening clause, referring to “the record title of real property.” St. 1893, c. 340, § 1. Contrast Pub. Sts. (1882), c. 176, §§ 1, 2. Almost immediately following the 1893 amendment, this court was required to consider the meaning of the new statutory language. In the case of
Arnold
v.
Reed,
3. Standing as owner of the property. 7 Bevilacqua alleges that he has record title to the property because he is the owner by virtue of a quitclaim deed granted to him by U.S. Bank. There appear to be two theories that underpin this argument. First, the quitclaim deed may be sufficient by itself to support record title to the property. Second, if the quitclaim deed itself does not constitute record title, then that instrument coupled with the chain of grants on which it relies is sufficient as a whole to demonstrate record title. The first theory is incorrect as a matter of law. The second theory is unpersuasive in light of the facts alleged by Bevilacqua.
In addressing the first theory, that a single recorded deed purporting to transfer title is sufficient to establish record title, the Land Court judge made the trenchant observation that such a doctrine would render the “Brooklyn Bridge” problem insoluble. Specifically, the judge wrote that “in the classic example, a litigant could go to the registry, record a deed to the *771 Brooklyn Bridge, commence suit, hope that the true owners ignored the suit or . . . could not be readily located and [would thus] be defaulted, and secure a judgment.” Leaving aside the fact that public property cannot be the subject of a try title action, see G. L. c. 240, § 5, an interpretation of the try title statute permitting such a result cannot be the law.
We are not persuaded by this “single deed” theory for a number of reasons, not least of which is the fact that there is nothing magical in the act of recording an instrument with the registry that invests an otherwise meaningless document with legal effect. See
S & H Petroleum Corp.
v.
Register of Deeds for the County of Bristol,
The second theory supporting Bevilacqua’s ownership claim addresses this point by asserting that the chain of deeds recorded at the registry is sufficient to demonstrate record title. Under this theory Bevilacqua may trace his chain of title back from the quitclaim deed, through the foreclosure deed, and ultimately to the mortgage granted by Rodriguez to MERS as nominee for Finance America. Bevilacqua has alleged, however, that U.S. Bank was not the assignee of the mortgage at the time *772 that it purported to foreclose on the property and conduct a sale pursuant to the power of sale contained in the mortgage. 8
As we recently held in the
Ibanez
case, Massachusetts “adhere[s] to the familiar rule that ‘one who sells under a power [of sale] must follow strictly its terms,’ ” so where a foreclosure sale occurs in the absence of authority, “there is no valid execution of the power, and the sale is wholly void.”
U.S. Bank Nat’l Ass’n
v.
Ibanez,
In this regard we note that Bevilacqua’s try title action based on ownership of the property faces an insurmountable obstacle. A try title action may be brought only where record title is “clouded by an adverse claim, or by the possibility thereof.” G. L. c. 240, § 1. However, the very fact that raises the possibility of an adverse claim — U.S. Bank’s lack of authority to foreclose at the time it purported to foreclose — is fatal to Bevilacqua’s claim to “own” the property. The basic problem is that, instead of presenting a potentially viable claim and seeking *773 to test it against the claims of a rival, Bevilacqua effectively admits that he does not presently have record title and seeks a declaration, if Rodriguez were to default, that the defect is cured. In light of the pleaded facts it is thus impossible for us to conclude that Bevilacqua’s ownership theory demonstrates the jurisdictional facts necessary to maintain a try title action. See G.L. c. 240, § 1.
4. Standing as assignee of the mortgage. As an alternative to the claim that he owns the property in fee simple, Bevilacqua argues that he holds record title because he is the assignee of the mortgage granted by Rodriguez to MERS as nominee for Finance America. Bevilacqua does not develop the argument at length but it is an intriguing one given that Massachusetts is a “title theory” State in which “a mortgage is a transfer of legal title in a property to secure a debt.” U.S. Bank Nat’l Ass’n v. Ibanez, supra at 649. If a mortgagee’s legal title suffices to establish “record title” under G. L. c. 240, § 1, then Bevilacqua may be able to demonstrate standing to proceed with this try title action. We conclude, however, that Bevilacqua’s claim to record title as mortgagee is inconsistent with the relief he seeks, namely, that Rodriguez be compelled either to “show cause why he should not be required to bring an action to try title” or to “be forever barred from having or enforcing any claim in the property.” Accordingly, we conclude that Bevilacqua’s theory of record title as mortgagee is untenable and cannot support standing under G. L. c. 240, § 1.
We begin our analysis of this question by noting that Bevil-acqua’s claim to be holder of the mortgage has at least a plausible basis despite the fact that he has never taken an express assignment. This court has held that it is possible for a foreclosure deed, ineffective due to noncompliance with the power of sale, to nevertheless operate as an assignment of the mortgage itself. See
Holmes
v.
Turner’s Falls Co.,
The title that Bevilacqua might claim as mortgagee, however, would be inconsistent with the relief that might be provided under G. L. c. 240, §§ 1-5. The problem, from Bevilacqua’s perspective, arises from the nature of a mortgage. In Massachusetts, a “mortgage splits the title in two parts: the legal title, which becomes the mortgagee’s, and the equitable title, which the mortgagor retains.”
Maglione
v.
BancBoston Mtge. Corp.,
Inherent in this concept of the mortgagee’s defeasible title is the mortgagor’s equity of redemption:
*775 “[T]he mortgagor’s equity of redemption [is] the basic and historic right of a debtor to redeem the mortgage obligation after its due date, and ultimately to insist on foreclosure as the means of terminating the mortgagor’s interest in the mortgaged real estate.”
Restatement (Third) of Property (Mortgages) c. 3, Introductory Note at 97 (1996) (addressing common law applicable in both title theory and lien theory States). “[A]n equity of redemption is inseparably connected with a mortgage,” Peugh v. Davis, 96 U.S. 332, 337 (1877), and endures so long as the mortgage continues in existence:
“When the right of redemption is foreclosed, the mortgage has done its work and the property is no longer mortgaged land. Instead, the former mortgagee owns the legal and equitable interests in the property and the mortgage no longer exists.”
Santiago
v.
Alba Mgt., Inc., supra
at 50. See G. L. c. 244, § 18 (mortgagor holds equity of redemption until mortgagor forecloses);
Maglione
v.
BancBoston Mtge. Corp., supra
(“upon payment of the note by the mortgagor . . . the mortgagee’s interest in the real property comes to an end”). Following default, therefore, a mortgagee may enter and possess the property but his or her title remains subject to the mortgagor’s equity of redemption. See G. L. c. 244, §§ 1, 2;
Joyner
v.
Lenox Sav. Bank,
This point controls the present case because a litigant who asserts that he or she is the holder of a mortgage necessarily
*776
asserts that the mortgage continues to exist and that the mortgagor’s claims to the property remain valid. For this reason, a plaintiff in a try title action may be heard to claim that a mortgage no longer exists, that claims to the contrary are adverse, and that the putative mortgagee should be required to bring an action trying the claim. See, e.g.,
Brewster
v.
Seeger,
To assert that he holds legal title as mortgagee, Bevilacqua must necessarily accept that Rodriguez has a complementary claim to either equitable title (if there has been no default) or an equity of redemption (if default has occurred). In either case, and although their economic interests may diverge, Bevilacqua cannot be heard to argue that Rodriguez’s claim is adverse to his own. This fact necessarily precluded Bevilacqua from establishing a necessary element of his try title action — the existence of an adverse claim. 9 See G. L. c. 240, § 1 (action may be brought “[i]f the record title of land is clouded by an adverse claim . . .”). The legal title possessed by a mortgagee is not, therefore, a basis of standing that would be consistent with maintenance of Bevilacqua’s action against Rodriguez. Accordingly, we conclude that it is not open to Bevilacqua to rely on such title in attempting to demonstrate the necessary jurisdictional facts. 10
5. Standing as bona fide purchaser for value. In concluding *777 his arguments, Bevilacqua asserts that he “could not have known, when he purchased the [property, that this title problem existed” and that as a result he must be permitted to proceed under the try title statute or be left without an adequate remedy. Certain of the amici expand on this point, arguing that Bevilacqua is a bona fide purchaser for value and without notice such that he holds good title to the property. Under this theory, Bevilacqua’s quitclaim deed transferred good title to the property that, in addition to his possession, satisfies the standing requirements of the try title statute. 11 G. L. c. 240, § 1. We need not address the legal merits of the argument because Bevilacqua is not a bona fide purchaser without notice of the defects in his grantor’s title.
We begin analysis of this bona fide purchaser theory by noting that “[t]he law goes a great way in protecting the title of a purchaser for value without notice or knowledge of any defect in the power of the vendor to sell . . . .”
Rogers
v. Barnes,
Generally, the key question in this regard is whether the transaction is void, in which case it is a nullity such that title never left possession of the original owner, or merely voidable, in which case a bona fide purchaser may take good title. See
Brewster
v.
Weston, supra.
Cf. Restatement (Second) of Contracts § 7 comment a (1981). Here, the dispute as to title revolves around the validity of the unauthorized foreclosure sale conducted by U.S. Bank. Certain of the amici argue that the category in which such a transaction belongs, void or merely voidable, has not been addressed definitively in Massachusetts. Our recent decision in the case of
U.S. Bank Nat’l Ass’n
v.
Ibanez,
Bevilacqua’s petition alleges that a number of documents were recorded with the registry and provides the book and page number applicable to each document, but fails to provide the dates on which recording occurred. We take judicial notice, however, of the fact that the registry assigns book and page numbers to recorded instruments in a sequential manner. See Mass. G. Evid. § 201(b) (2011). We therefore may conclude that instruments with lower book and page numbers were re
*779
corded prior to instruments with higher book and page numbers.
12
Here, the book and page numbers demonstrate recording of documents in the following order: (i) the mortgage from Rodriguez to MERS (executed on March 18, 2005); (ii) the assignment of mortgage from MERS to U.S. Bank (executed on July 21, 2006); (in) the purported foreclosure deed from U.S. Bank “as Trustee” to U.S. Bank as trustee under the servicing agreement (executed on June 29, 2006); (iv) the “Confirmatory Foreclosure Deed” from U.S. Bank “as Trustee” to U.S. Bank as trustee under the servicing agreement (executed on October 9, 2006); and (v) the quitclaim deed from U.S. Bank to Bevilac-qua (executed on October 17, 2006). We cannot be sure of the precise date on which the foreclosure deed became a matter of public record, but we do know that this occurred after the assignment of mortgage had been recorded. As a result, Bevilac-qua must have attempted to purchase the property from U.S. Bank (in some capacity) either when the registry’s records showed the bank to be a complete stranger to title, when the registry’s records showed the bank to be no more than an as-signee of the mortgage, or when the registry’s records showed that the bank conducted the foreclosure sale before receiving assignment of the mortgage. In none of these circumstances could we conclude that Bevilacqua is a bona fide purchaser for value and without notice that U.S. Bank’s title was doubtful. See
Demoulas
v.
Demoulas,
6.
Dismissal with prejudice.
As a final matter we consider whether the Land Court judge properly specified that Bevil-acqua’s complaint be dismissed with prejudice. As discussed above, the precise procedural mechanism under which the judge decided the sua sponte motion to dismiss is unclear. What is
*780
clear, however, is that the judge’s dismissal was based on lack of standing and thus want of subject matter jurisdiction. See Mass. R. Civ. R 12 (h) (3) (“Whenever it appears by suggestion of a party or otherwise that the court lacks jurisdiction of the subject matter, the court shall dismiss the action”);
Sullivan
v.
Chief Justice for Admin. & Mgt. of the Trial Court,
A complaint that is dismissed for lack of jurisdiction is not an adjudication on the merits. See Mass. R. Civ. P. 41 (b) (3), as amended,
7. Conclusion. The Land Court judge properly raised the question whether Bevilacqua has record title to the property such that he has standing to bring a try title action. Bevilacqua has identified no basis on which it might be concluded that he has record title to the property such that a try title action may be sustained. As a result, the Land Court was without jurisdiction to hear the try title action. Dismissal of the petition was therefore proper. The dismissal should have been entered without prejudice, however, and we therefore remand to the Land Court for entry of judgment consistent with this opinion.
So ordered.
Notes
We gratefully acknowledge the amicus briefs submitted by the American Land Title Association; the Attorney General of the Commonwealth; the Massachusetts Association of Bank Counsel, Inc.; the Mortgage Bankers Association; Professors Adam J. Levitin, Christopher L. Peterson, Katherine Porter, and John A.E. Pottow; and the WilmerHale Legal Services Center of Harvard Law School.
It may not be desirable merely to assume the accuracy of a plaintiff’s factual assertions. If a plaintiff brings a try title action and the respondent defaults, “the court shall enter a decree that [the respondent] be forever barred from having or enforcing any such claim adversely to the petitioner.” G. L. c. 240, § 2. As a result, a property owner whose whereabouts are unknown and who is not reached through publication notice might be divested by a plaintiff who is put to no greater evidentiary test than having pleaded facts that the court is obliged to accept as true. See
Ginther
v.
Commissioner of Ins.,
A better approach, consistent with the procedure followed in the case of a motion to dismiss due to lack of subject matter jurisdiction, may be to place the burden of proof on the nonmoving party (here, Bevilacqua) to prove jurisdictional facts. See, e.g.,
Caffyn
v.
Caffyn,
As discussed further, infra, the structure of the try title statute is a direct reflection of the limitations inherent in the common-law writ of entry. The try title statute may now be something of an anachronism when it is considered that modern statutes are far more flexible than the common-law writ, see G. L. c. 237; that Massachusetts courts are now vested with equity jurisdiction, see, e.g., G. L. c. 185, § 1 (k); and that declaratory judgment is now available to litigants in this Commonwealth, see G. L. c. 231 A, inserted by St. 1945, c. 582, § 1.
One of the amici has appended to its brief a number of deeds referring to the property at 126-128 Summer Street in Haverhill that were recorded between the time Bevilacqua purchased the property and the date on which he filed his petition. Specifically, Bevilacqua recorded a master deed establishing a condominium that consists of four units. Bevilacqua also recorded three deeds transferring units to various third-party purchasers. These deeds and the conveyances they represent are not matters properly before the court and do not factor into our analysis. Although nonevidentiary, the deeds are nevertheless noteworthy in that they explain why Bevilacqua’s complaint is drafted to imply possession rather than pleading the matter directly, see
Connolley, petitioner,
In determining that a plaintiff under G. L. c. 240, §§ 1-5, must possess
*768
both record title and possession, the motion judge quoted
Daley
v.
Daley,
An action to quiet title is an in rem action, G. L. c. 240, § 10, brought under the court’s equity jurisdiction. See G. L. c. 185, § 1
(k); First Baptist Church of Sharon
v.
Harper,
The distinction is critical because the plaintiff in a try title action may defeat the specified adverse claims through a default or by showing title that is merely superior to that of the respondent. See G. L. c. 240, §§ 2-3;
Blanchard
v.
Lowell, 177
Mass. 501, 504-505 (1901). In contrast, a quiet title action requires the plaintiff “not merely to demonstrate better title to the locus than the defendants possess, but requires the plaintiff to prove sufficient title to succeed in its action.”
Sheriff’s Meadow Found., Inc.
v.
Bay-Courte Edgar-town, Inc.,
Interestingly for purposes of this proceeding, in
Arnold
v.
Reed,
162 Mass.
*770
438 (1894), the court was presented with a try title action where the plaintiff relied on a recorded deed reciting that the grantor possessed good title.
Id.
at 440. “[T]he recitals [were] not true [however], and this would appear by an examination of the records of the Probate Court.”
Id.
Accordingly, the mere recording of an instrument with the registry of deeds that purports to transfer ownership was insufficient to create standing under the try title statute.
Id.
But see
Connolley, petitioner,
We refer in Part 3 to Bevilacqua as the owner of the property, using the term “owner” in a colloquial sense, to distinguish this analysis from our later consideration of Bevilacqua’s claim to hold record title as assignee of the mortgage or as a bona fide purchaser without notice.
One amicus appended to its brief a copy of the foreclosure deed and the legal notice announcing the foreclosure sale. That foreclosure deed recites that “U.S. Bank National Association [U.S. Bank] as Trustee [is the] holder of a mortgage from Pablo Rodriguez,” while the notice, recorded with the foreclosure deed, states that “[U.S. Bank as trustee] is the present holder” of the mortgage. Neither of these documents is in evidence, and whether he relied on such representations or not, Bevilacqua’s petition directly contradicts the accuracy of the quoted statements. We rely on the facts pleaded in the petition for purposes of this appeal. See supra at 764.
In addition, it is difficult, if not impossible, to imagine what kind of action Rodriguez might bring to try his title as mortgagor. Presumably Rodriguez would assert that the purported foreclosure sale was ineffective, that no foreclosure has occurred, and that he thus retains an equity of redemption. Bevilacqua necessarily would agree with these claims, having asserted that he is the mortgage holder, so judgment could enter on the pleadings declaring that Rodriguez enjoys an equity of redemption. Such an action would be nonsensical.
Bevilacqua asserts that foreclosure is not an adequate remedy in these circumstances because, he argues with emphasis, if he “is required to foreclose on the mortgage ... to clean up his title, this will delay his sale or refinance
*777
for a
minimum
of about seven to nine months.” Foreclosure, however, is the appropriate remedy for a mortgagee seeking to resolve an outstanding equity of redemption. See
Negron
v.
Gordon,
Bevilacqua’s chain of title as a bona fide purchaser necessarily begins with his quitclaim deed from U.S. Bank. In some States, “[i]t is well settled . . . that one who has only a quitclaim deed to land cannot claim protection as a bona fide purchaser without notice.”
Polhemus
v.
Cobb,
A registry of deeds may employ several assistant registers who process documents. It is thus possible, although irrelevant for purposes of this decision, that documents presented to different assistant registers at nearly the same time may have book and page numbers that do not reflect the precise order of such overlapping presentations.
