working on import/export to a file