add routing_set_pid function