replace varaints/secrets by variant/secret