added ability for alert script to email