added reportOutput handling