implemented routing_switch(pilot run).