console output handler