change export behavior to generate files only on demand