renamed DEBUG to DEBUG_SIMULATE_MOTION