modified to read index.html bug2