fixed heinous bug in switchbox routing