added cursor stuff