* start moving the hdr struct up, and add detach callback. Unfinished.