added custom native cursor support