now consoleprintf also prints to cout