Change mesh.update to return header type