mod: some rework of cursor hint & trace distance related code