replica handling added to wiggler processing