adapting the headers to fit in swauth headers