wip add z from xml.