change start logic of logs.js