more fiddling with the axis layout code