added motion direction checker command