Okay, this is embarrasing,
I have switched the stepper motor cables around for X and Y... not the end stops.. all day i have been starring on this board to see what was wrong.. and it's maybe just that i think.... oh no