cleanup var statements, fix silly bug
implement tags and the logstash transport