quick and dirty implementation of import/export