Section 8. (a) The court may order any party to the proceeding who is in the commonwealth to appear personally before the court. If that party has physical custody of the child the court may order that he or she appear personally with the child.
(b) If a party to the proceeding whose presence is desired by the court is outside the commonwealth with or without the child, the court may order that the notice given under section five include a statement directing the party to appear personally with or without the child and declaring that failure to appear may result in a decision adverse to that party.
(c) If a party to the proceeding who is outside the commonwealth is directed to appear under paragraph (b) or desires to appear personally before the court with or without the child, the court may require another party to pay to the clerk or register of the court travel and other necessary expenses of the party so appearing and of the child if this is just and proper under the circumstances.