make direction[] in the EndStop module always be boolean