changes for reading from index.html