first stab as plugin header logic