interaction with cursor
performance improvements, comments