added restore_settings