to make certain that type of threat would never catch them off guard again , or give any ideas to the military ; they strengthened their ties with the other gothic factions they ruled in germany , poland , budapest , hungary and many other countries .