better support for console and log