added handling for importing a backup