Reshuffle how virtualdomains file is handled