generate files under subdirectory.
cache on last modified. fixes #199