writing ext for ObjectMotor