 	unless lastHash == newHash
 		lastHash=newHash
 		cb alerts
+	true
+	
+i = 0
 
 start = ()->
 	console.log 'run number #', ++i

	request nParams,(e,r,b)->
		if r.statusCode == 200
			v._rev = b._rev
			fcb = dcb
		else
			fcb = (e,r,b)->
				if r.statusCode == 201
					console.log 'tweeting ',v.header_text 
					tweet v.header_text
		nParams.method='put'
		nParams.body=v
		request nParams,fcb
		true
	true

lastHash = 1

dumbCache = (alerts,cb)->
	hash = crypto.createHash 'sha512'

	msg = msg+' #mbta'
	msg.replace /\b\w+?\b Line/g,(a)->
		'#'+a.replace(/\ /,"")
	msg
	
tweet = (msg,cb=defaultCallback)->
	twitter.post('statuses/update',{status:cleanForTweet(msg)},cb)

eachAlert = (v)->
	v['_id']=v['alert_id'].toString()
	nParams = 
