Import and export and cleanup