added handling of importing a backup