added switch to use mocap or not