changed multicursor plugin ; refactored functions