injects RG info into header