combine the script sections