add x2z, z2x, init_xz, and others