delivered the opinion of the court.
In 1929 J. J. Hаrdie, B. D. Burns, D. S. MacKenzie and Y. C. Miller were the holders of an oil and gas lease on certain lands in Liberty county, taken in the name of Hardie and Burns, trustees, and on which drilling operations were being conducted by the trustees. On September 23, 1929, the plaintiff, T. H. Blose, was employed by Burns, confirmed by Hardie, to take charge of the well at a wage of $200 per month. In January, -1930, Burns informed Blose that the operators were short of funds and wеre going to Chicago to seek financing, and that he would have to agree to a temporary reduction of wages to $100 per month. In April the leaseholders incorporated under the name of Havre Oil & Gas Company, each taking stock in the corporation to the extent of his interest in the lease, and, on April 28, 1930, the trustees assigned the lease to the corporation. Burns, who was made managеr, then informed Blose that “the company has organized to sell stock and as far as you are concerned you continue just as you have been.” Blose had charge of the operations, without interruption, continuously from September 23, 1929, to October 4, 1930, *457 under the direction of Burns, during which time he drilled, cleaned out the well, swabbed and pumped oil, and kept the well “in a state of repair and operation.”
On October 6, 1930, Blose filed a “claim for labor lien,” to which he attached his “statement of account for labor furnished in connection with the drilling of oil and gas well” made “to J. J. Hardie, Bears Den Oil Company, B. D. Burns and Havre Oil and Gas Company.” The statement is of debits and credits over the entire period of service, and shows a balance due of $1,765.28. On March 22, 1931, Blose brought action against the original associates, the trustеes, and the corporation, jointly, for the full amount claimed and for the foreclosure of his asserted lien.
By a joint answer the defendants admit practically all of the allegations of the complaint, but assert that the employment of the plaintiff was by Hardie and Burns up to the time of incorporation, and by the corporation thereafter. They deny the correctness of the statement of account for each period, and allege the invalidity of the “claim of lien.” Certain alleged counterclaims are set up which are not material here. Issue being joined, the cause was tried to the court without a jury.
On the trial the defendants demanded that the plaintiff be compelled to elect as to whether he would proceed against the individuals or the corporation, which demand was refusеd; they objected to the introduction in evidence of the claim of lien filed, which objection was overruled.
At the close of the trial the court made findings of fact and conclusions of law, upon which it entered judgment in favor of the plaintiff, and against Hardie and Burns, trustees, in the sum of $761.08 under the contract, for $150 attorneys’ fees and for costs, and against the Havre Oil & Gas Company in the sum of $678.65. The court decreed that the plaintiff has a valid and existing lien against all the right, title and interest of all of the defendants in and to the leasehold for the total of the judgments, and decreed the foreclosure of the lien and sale of the property.
*458 The defendants have appealed from the judgment; they specify error upon the receiving of the lien in evidence, the overruling of the motion to compel an election, in overruling their motion for judgment of dismissal at the close of plaintiff ’s case, and upon numerous findings of fact made.
The position taken by counsel is that the plaintiff worked under two separate contracts — the first with the trustees, on which he was entitled to maintain an action against them; the second with the corporation, on which he was likewise entitled to maintain an action against it — which could not be united in a single action, and that, as there was no continuous service under a single contract, the single claim of lien for the full amount was invalid and cannot become the basis of a foreclosure suit.
The defendants cite a number of decisions condemning the tacking of one contract debt to that of an independent contract debt as the basis of a single lien claim, the latest of which is an oil-well case
(Exchange National Bank of Tulsa
v.
Okeya Oil & Gas Co.,
Defendants cite one case which supports their contention
(Gerard B. Allen & Co.
v.
Frumet Milling & Smelting Co.,
73
*459
Mo. 688), by holding that, where a contracting firm incorporated, took over the property, and assumed the debts of the firm, in the midst of the performance of the contract, and continued the operations without interruption, there were two independent contractors, because “in the eye of the law, the firm and the corporation are different persons,” and therefore a single statement and claim of lien was invalid. This decision was rendered in 1881. We doubt that the supreme court of Missouri would so hold to-day; though the exact point has not since been raised in that court, it has held that the amount due under separate contracts on the same structure may be united in a single lien claim, if filed within the statutory period after completion of each contract.
(Schroeter Bros. Hardware Co.
v.
Croatian “Sokol” Gymnastic Assn.,
(Mo. Sup.)
While mechanics’ lien laws did not exist at common law and are unknоwn in England, our forefathers were so imbued with the spirit of justice and fair dealing that such laws came into being in this country almost simultaneously with our Constitution. The first “Act to encourage master builders by establishing a lien for their just claims” was passed in Maryland in 1791; the idea spread rapidly to all the original states and to territories and states as they were created. The lien exists to-day in every state in the Union. (Lloyd on Building
&
Buildings, 413.) Such a law has existed in Montana since the earliest territorial days. (Bannack Laws, p. 332.) For a history of our law, see
Merrigan
v.
English,
The controlling statute in the instant case is Chapter 152 of the Session Laws of 1923, which provides in part: “Any person * * * who shall under contraсt, expressed or implied, with the owner of any leasehold for oil and gas purposes * * perform labor * * * in * * * drilling, torpedoing, completing, operating, or repairing of any oil or gas well, * * * shall have a lien upon all of the right, title and interest of such owner in and to the whole of such leasehold. * * * The liens herein created shall be enforced in the same manner * * * as now provided * * * for * * * mechanic’s liens, except that the time within which such liens must be filed shall be six months instead of ninety days. * * * ”
Desiring to avail himself of the benefits of the foregoing statute, the plaintiff was required to file with the county clerk, within six months after the labor was performed, a “just and true account of the amount due him, after allowing all credits, and containing a correct description of the property to be charged with such lien, verified by affidavit, but any error or mistake in the account or description does not affect the validity of the lien, if the property can be identified by the description.” On an open account, the claim must be filed within six months after the date of the last item. (Sec. 8340, Rev. Codes 1921.)
"While under the foregoing statute, and kindred statutes, the labor must be performed under a contract, express or implied, the contract may be with the owner, his agent or trus
*461
tee.
(Love Bros.
v.
Mardis,
Conceding for the moment that two contracts are here involved, the plaintiff had a lien against the property on each, and, as the statute had not run against the lien under the associates’ contract, at the time he filed his claim of lien, the single рroperty was chargeable under . each contract.
(McCormack
v.
Bertschinger,
Under Chapter 152, above, as under the ordinary mechanic’s lien laws, when the mechanic perfects his lien by compliance with the statute, his lien, theretofore in existence by virtue of the statute, takes effect as of the date of the commencement of his work on the property charged.
(Continental Supply Co.
v.
White,
It has been held that there can be no “innocent purchaser” of property upon which an erection has been commenced, as against mechanics ’ liens which are asserted within the time and in the manner provided by law.
(Bell
v.
Koontz,
In
Mellor
v.
Valentine,
above, it is said that “subsequent alienations or incumbrances are not prevented, but made subordinate to the right of the mechanics who, at the time, were engaged in working, and continued afterward to work under previous employment by the vendor,” and “where the work done, or materials furnished, is continuous in its character, the contract is tо be regarded as an entirety, and the lien attaches for work done and materials furnished, after, as well as before the purchase,” citing Phillips on Mechanics’ Liens, sections 228, 229, 230;
Monroe
v.
West,
From the foregoing rules we conclude that, when a mechanic is employed to erect an improvement upon the lands of another, by a contract which, in the contemplation of the parties, is to be continuous until the еrection is completed, and commences work on the improvement, a lien for his services immediately attaches to the property, which cannot be defeated by the then owner selling the property, and, if the purchaser with knowledge of the facts permits the mechanic to continue the work under the contract, or, as here, requests him to do so, the contract is to be deemed an entirety, and the single lien may be perfected for the amount due both before and after the transfer of the property.
The plaintiff did not seek to hold the Havre Oil & Gas Company for that part of the debt incurred prior to the assignment of the lease to it, and, in order to foreclose his lien against the property, it was necessary to make the original associates parties to the “blended” action.
There was no misjoinder of causes оf action or parties defendant
(Rasmusson
v.
Liming,
Defendants assert that the court erred in admitting the lien claim in evidence because it “did not give the name of the owner or reputed owner of the leasehold” and was therefore invalid.
*464
The general rule is that “whenever the particular statute requires the claim to contain the name of the owner or reputеd owner, the omission of this detail is fatal to the lien.” (Phillips on Mechanics’ Liens, 345, quoted in
Missoula Mercantile Co.
v.
O’Donnell,
Section 8341, above, applies as well to a claim filed under Chapter 152, Laws of 1923. The O’Donnell rule has been twice approved by this court.
(Cook
v.
Gallatin Ry. Co.,
*465
Under Chapter 152, Laws 1923, it is not the owner of the land, but ratber the owner of the leasehold at the time of filing the claim, whose name must appear therein.
(Sunburst Oil & Ref. Co.
v.
Callender,
Reverting to the three Montana cases in which the rule was applied, we find that, in the first, the lien would be indexed as against thе property of O’Donnell, whereas it should have been in the name of Peterson, the grantee of O’Donnell; in the second, against the Yellowstone Park Railway Company, when it should have been against the Gallatin Company; and, in the third, in the name of McGill-Nevin Company, when it should have been against one Umhang. In no one of these cases would a person searching the record have discovered the existence of the lien. This situation does not exist in the case at bar. While the claim is inartistically drawn, it informs the owner of the leasehold, and the world, that Blose claims a lien for labor performed on the oil-well “drilled by J. J. Hardie and Havre Oil and Gas Company ’ ’ on land accurately described, and at their special instance and request, which lien is upon the well, the machinery and appurtenances, “and upon the lease for oil and gas purposes upon said parcel of land.” Here the county clerk would have no difficulty in abstracting and indexing the lien under the name of the owner of the leasehold, for the claim does “contain the name of the owner” and does show “the name of the person against whose property the lien is filed,” and in the action to fore *466 close the lien the interest of no third person could be affected, as was the case in the three decisions commented upon above. The rule in the O’Donnell Case is announced in Sprague Investment Co. v. Mouat Lumber & Inv. Co., above, with the addition, “as against these subsequent incumbrancers and grantees. ’ ’
It was early held in New York that, where the statute does not declare in set terms that the claim shall state who is the owner of the property, the law is satisfied if the claim contains the name of the person against whоse interest the lien is claimed and a statement of the facts subjecting that .interest to the lien.
(Ross
v.
Simon,
In Nebraska it is held that the Act intended to secure those who have contributed to the erection of a building compensation for their labor, remedial in its character, should be given a “most liberal construction” in order to give full effect to its provisions
(Way
v.
Cameron,
The supreme court of North Dakota has declared a similar rule, and, commenting on a contrary decision, said, “It seems to us that this case illustrates a dangerous tendency on the part of courts to tamper with the plain import of statutory law, by reading into unambiguous statutes a conjеctured meaning, which the legislature has excluded therefrom,” but said that, had an innocent purchaser or encumbrancer dealt with the owner before the action to foreclose, “it might be that the plaintiff would be estopped from setting up the lien as against such purchaser or encumbrancer. But no such question arises in this case.”
(Red River Lumber Co.
v.
Children of Israel
(Friel),
As this court has so often said, the pronouncements in a given decision must be read in connection with the facts of the case decided. In each of our cases cited above, the
*467
rule invoked was necessary for tbe protection of third parties, and, while each case was correctly decided, they do not militate against the validity of the present lien, as between the lienor and the owner of the leasehold, whose name appears in the filed claim whiсh was undoubtedly abstracted and indexed under the name of Havre Oil & Gas Company, as owner. The fact that it may also have been indexed under other names is immaterial.
(Church E. Gates & Co.
v.
Empire City Racing Assn., 225 N.
Y. 142,
The defendants urge that, because the lien claim declares that the claimant performed the work “at the special instance and request of” the parties named “and the persons and corporations for whose immediate use and benefit the said labor was performed,” it is indicated that others than those mentioned were interested in the property. The whole sentence means no more than that the persons mentioned were the parties at whose request, and for whose use and benefit, the labor was performed.
The bare overstatement of the amount due the lienor does not, under the statute, invalidate the lien.
(Eskestrand
v.
Wunder,
No reversible error appearing in the record, the judgment must be affirmed.
