sorted it now. had to play around with the homing directions in homing and limits and it all works fine now.