egress and interrrior switches with some debug statements