change export behavior to generate files only on demand
Merge pull request #677 from arnaudbey/change-export-behavior

change export behavior to generate files only on demand