more 3d fixes for z dir