read from index.html
fixes buffer handling
fixes encoding issue
remove backups