added alerts to index script