process output handler