#23: changed the external format to simply return both the header and the data