added the logic required to combine auth messages together