updating routing with pin switches