Arthur, just a suggestion, but would it not be better to use RJ25 style connectors for the endstops?
Molex are cheap and readily available, however the crimp tooling can be expensive.
The RJ25 connectors are readily available as well, but the crimp tooling and even pre-assembled cables are also readily available and cheap.
Something to consider.
Imported from wikidot