add export/import functionality