refactored in backup_script_2