updated the masterScript