using threads to try speed up desktop switching but its not working out