so i wired everything up and checked the endstops. it looks kinda good i guess.
After i pressed HOME ALL, the axes did what they were supposed to.
I want to thank all three of you guys for staying up this late and helping me figure this out and also for not giving up when i had no idea what could be done otherwise.
cheers lads and thanks so much.