regenerate TXT and HTML