added debug cursor