Ah right I understand about the Z- limit switch, of course that's not really needed then. And mounting the limit switches at 90° is a good idea too, think i may try that.

I think i know what i'm doing now, thanks very much for your help.