implemented dump & restore
now remembers last used directory (fixes #3)