fix detecting start of new sequence after a broken start; comment out console.log