rewrote header decoder for data objects