expose state fn on cursor, there be dragons