restored original console.log functionality