during the age of the republic , gaius marius helped to establish the connection of the army to whatever leader they were loyal to and the soldiers were paid by the exploits of their political benefactors .