fix mr scripts