egress and interior switches with some debug statements