adds cursor support