neutral safety switch/ reverse light unit in trans

The unit that came out (which worked for 35 years) is the one with the tall hex and the one that I bought looks just like it. The back up lights worked with the old one, but I had intermittent issues with the neutral start (which seems to be fixed with the new unit). Since the back-up lights and the neutral switch work in different gears how is that accomplished in the switch unit?