wip: accurate cursor position