first hack at supporting XYZ PCS

still need to fix new encode / decode