added option minMoveDistance