fix parseXYZ to not be completely stupid