export headers to separate fields

 + failed attempt to work at tree level