added index.html
changed to use buffer