read from index.html
bug fix
displays index.html instead of downloading