fixing range issues & consistency with markTextApi