update to current XS api