index.html is now more flexible