added a timeout, removed console.log