minor changes, changed connected alert to console.log