added email notification parameter to update script