added export and import of history