- add getXbyY_r function support