added support for xr package