updated alert monitor script