a bit of rearrangement to get-headings.rb

just moving some code around, no longer grabbing protocol headings.