crude import/export functionality