permutation flag + topology fix.