added z order parsing