separated out the make_backup code in preparation for some patches