The appellant, Charles P. Boland Company, entered into a contract with the defendant Emma Willard School (formerly the Troy Female Seminary) for the erection of certain buildings on real property belonging to it. The plaintiff, George W. Maltby & Sons Company, entered into a contract with the contractor to furnish the marble work. Not having been paid in full the plaintiff filed a mechanic’s lien and brought this action to foreclose the same, making the owner and contractor and other lienors parties.
The complaint contains the usual allegations to the effect that the plaintiff furnished materials and performed work in accordance with the contract which it made with the contractor and.that the contractor fully performed its contract with the owner, and that at the time of filing the lien there was due and payable by the owner to the contractor a sum more than sufficient to pay the plaintiff. The ordinary relief that the claims of other lienors be adjusted and that the premises be sold to satisfy such claim as plaintiff might establish is demanded.
To this complaint the contractor answered admitting that the amount claimed remained unpaid, and that the plaintiff had fully performed the sub-contract, but alleging that the owner had refused to accept the same in performance of its own contract and that the architect had refused to issue his certificate for payment, and that by reason thereof, according to the plaintiff’s contract, nothing had become due and payable to the plaintiff. The answer further. alleged, however, that such refusal of the owner to accept was unauthorized and unwarranted, and that the refusal of the architect to issue his certificate was unreasonable, and as relief demanded that it be adjudicated that such refusal to accept was unauthorized and that such refusal to issue the certificate was unreasonable, and that it be adjudged that the material furnished and work done *598by the plaintiff and other lienors who were made defendants was in full and proper performance of its contract with the owner, and that the balance withheld thereon be declared due and payable.
This answer was served not only on the plaintiff but on the defendant owner, Emma Willard School. The Emma Willard School, without answering, but preserving . its right so to do, moved to set aside such service as against it and the motion was granted. The contractor appeals.
The respondent seeks to sustain such order on the ground that the contractor had. previously brought an action against the owner to recover the alleged balance due on the contract, in which action issue had been joined as to all matters pertaining to performance and non-performance and as to which a jury trial was a matter of right, and upon the further ground that there were no equities existing between the contractor and the owner in the present action which were proper to be or required to be adjusted between the contractor and the owner to the delay and hindrance of the plaintiff.
' We cannot concur in this view. Both the contractor and the owner were proper and necessary parties to plaintiff’s action of foreclosure. It is true that section ii of the Lien Law (Con-sol. Laws, chap. 33; Laws of 1909, chap. 38) mentions only colienors and those having subsequent liens or claims against the property by judgment, mortgage or otherwise, as necessary parties. But section 43 declares that where a mechanic’s lien is foreclosed in a court of record the provisions of the Code of Civil Procedure with respect to actions for the foreclosure of a mortgage upon real property must be followéd. The plaintiff could get no valid decree of foreclosure and sale of the owner’s property without making such owner a party defendant, and if for any reason the plaintiff should fail to establish its lien it could get no personal judgment against the contractor without making him a party. The owner was, therefore, a necessary party and the contractor an entirely proper party and a necessary one if the plaintiff desired to preserve its full rights to a personal judgment against it in case of failure to establish its lien.
By its complaint the plaintiff alleged and must prove in order *599to obtain a decree of foreclosure and sale, unless the owner shah admit the fact not only that it performed its contract as sub-contractor but that the contractor fully performed its own contract and that there remained some amount due and payable from the owner to it. If the owner refused to accept plaintiff’s work-in fulfillment of the general contract, plaintiff must prove that such refusal was unwarranted; and, if the architect withheld his certificate, plaintiff must prove that such withholding was unreasonable, because by the contract no payment was due until such certificate was given. From the attitude of the owner it cannot be assumed that it will admit that its position was unwarranted and unreasonable and that the contract was in fact fully performed and that the amount claimed became due and payable. But whether it is prepared to make such admissions or not, the answer of the contractor to the plaintiff’s complaint tenders an issue and is not frivolous. The object of the action is to foreclose the lien and sell the owner’s property. If for any reason the lien falls, the law permits a personal judgment to be taken against the contractor; but such judgment can be taken only in case of the failure of the lien. (See Lien Law, § 5-1.) In effect the answer of the contractor alleges that nothing became due* the plaintiff because it obtained no certificate of the architect or acceptance of its work. This allegation is not vitiated by the fact that such answer also alleges that the refusal to accept was unwarranted and the withholding of the certificate unreasonable. Such an admission is not binding on the owner and has no effect on its rights. If the plaintiff succeeds in proving not only that its own contract was fully performed but- that the general contract was fully performed and that the refusal to accept was unwarranted, it will follow that the withholding of the certificate of the architect was unreasonable.
The contractor being a proper party to the controversy and the owner being a necessary party, the contractor had the right to have the issues tendered by plaintiff’s action regularly and properly decided. Necessarily, these issues involve equities and the determination of rights between itself, the defendant contractor and the defendant owner with respect to the fulfillment of the general contract in so far as plaintiff’s contract *600may have fulfilled such general contract, and the contractor is entitled to such binding effect as the determination of those rights may give. The same is true as to the other lienors in so far as a fulfillment of their contract involves fulfillment of the general contract.
It may.be that a decision of the questions involved would be just as binding without cross service of answers as with, but it is entirely proper and within the privilege of one defendant to serve his.answer upon the other.
The situation is wholly unlike that existing in Alyea v. Citizens’ Savings Bank (12 App. Div. 574), upon which respondent relies, for in that case it was held that the contract with the bank was independent of the building contract, and, therefore, not within the issues involved in the foreclosure of the mechanic’s lien.
Very likely it would be more desirable for the respondent to try the action brought by the contractor against it before a jury unhampered by any decision that may be made in the present case. It finds itself, however, lawfully involved in the present action, where it must confess judgment or meet the issues tendered. The pendency of the action brought by the contractor is no bar to the present one brought by this plaintiff.
It is the policy of the court to avoid multiplicity of actions and in the foreclosure of mechanics’ liens the courts have always favored and often compelled, by the bringing in of additional parties, a settlement of the whole controversy in the one suit. (Hilton Bridge Const. Co. v. N. Y. C. & H. R. R. R. Co., 145 N. Y. 390; Mellen v. Athens Hotel Co., 149 App. Div. 534; Hinkle v. Sullivan, 108 id. 316.)
We see no reason why such pertinent issues as are presented should not be disposed of in the present action irrespective of the former one, and it follows that the order appealed from must be reversed, with ten dollars costs and disbursements, and the motion denied, with ten dollars costs.
All concurred.
Order reversed, with ten dollars costs and disbursements, and motion denied, with ten dollars costs. .