the offset for the surface id and related arrays was needed for writing out quads