 start = ()->
 	console.log 'running it time ', ++i
 	request params, (e,r,b)->
-		b.alerts.forEach eachAlert
+		if b and b.alerts
+			b.alerts.forEach eachAlert
+		else
+			console.log e,r,b
 		true
 	true
 

			console.log 'tweeting ',v.header_text 
			tweet v.header_text
			nParams.method='post'
			nParams.url = "https://#{config.couch}@calvin.iriscouch.com/mbta"
		nParams.body=v
		request nParams,(e,r,b)->
			true

eachAlert = (v)->
	v['_id']=v['alert_id'].toString()
	nParams = 
		url:"https://#{config.couch.user}:#{config.couch.pw}@#{config.couch.server}/#{config.couch.db}/#{v._id}"
		json:true
	request nParams,(e,r,b)->
		if r.statusCode == 200
