updated set_routes script to be ip independent