updated how scripts get combined