console.error and .log trick added