generalize header finding in MiniMap plugin