added log.console interception