added support for output writers