cursor: adjust cursor API to result in less consumer code.