changed how the scripts get loaded