Section 37. After a judgment for alimony or an annual allowance for the spouse or children, the court may, from time to time, upon the action for modification of either party, revise and alter its judgment relative to the amount of such alimony or annual allowance and the payment thereof, and may make any judgment relative thereto which it might have made in the original action.
The court, provided there is personal jurisdiction over both parties, may modify and alter a foreign judgment, decree, or order of divorce or separate support where the foreign court did not have personal jurisdiction over both parties upon the entry of such judgment, decree or order.
The court, provided there is personal jurisdiction over both parties to a foreign judgment, decree, or order of divorce for support, where such foreign court had personal jurisdiction over both parties, may modify and alter such foreign judgment, decree, or order only to the extent it is modifiable or alterable under the laws of such foreign jurisdiction; provided, however, that if both parties are domiciliaries of the commonwealth, then the court may modify and alter the foreign judgment in the same manner as it could have had the judgment, order, or decree been issued by the court; and provided further, that the court may not modify or alter the judgment, order or decree of a foreign jurisdiction which had personal jurisdiction over both parties concerning the division or assignment of marital assets or property.