improved restore from backup (update required)