working on a script to generate the routing object automatically