rm old index.html, add some console logging