add directory argument to ImportExport sub