intermediate work for SPEF header parsing