simplified export and import logic