When the parties agree to a general reference under CCP 638, unless their agreement provides otherwise, the trial court must enter judgment in accordance with the referee’s decision once it is filed with the court.  However, following entry of judgment, the court may review the referee’s legal conclusions on a party’s motion for new trial or to vacate the judgment.  If, as happened here, the court orders a new trial, the trial is to be held before the court unless the reference agreement provides that the referee is to have continuing jurisdiction, past the filing of his decision, and until final resolution of the case.