converts to flat html files