add multiple-cursors functions