In molding its decree to the necessities of the case ( see State of New York v Barone, 74 NY2d 332, 336; Litho Fund Equities v Alley Spring Apts. Corp., 94 AD2d 13, 17, appeal dismissed 60 NY2d 859), the motion court correctly perceived that, although the tax advice sought by the receiver related to the obligations of defendants as purchasers of the building he sold, the controversy over the transfer tax was generated by plaintiffs' strong opposition to defendants' position in the context of a protracted and contentious partnership dissolution. Since the receiver is an officer of the court, acts solely on its behalf and is otherwise a stranger to the parties' dispute, whether plaintiffs consented to the fee split is immaterial ( see Matter of Kane [Freedman — Tenenbaum], 75 NY2d 511, 515; Lubitz v Mehlman, 95 AD2d 690, 691). The imposition of sanctions against plaintiffs is unwarranted.