multithreading and cursormapping