-fix for #29
-fix for #26
-added dictionary to backup
-added dictionary to restore