add console.log to init