added endstops
better endstops