automate the generation of text to make it as easy as possible to add support for new file extensions. fixes #9