minor changes in backup and restore