use amount of z-attribs as well if given
set correct bounding box