added support for output writers
added support for labels