added logic to check for existing files and skip those updates accordingly