typo in console.warning calls
minor tweaks