routing and pinmapping