add getXPLayer
implement pass