implement stop-direction