exporting files - untested