fix console output