amended automation script for starting a new episode