alerting and mailing now working