use new routing_set_pid function
fix double registration