it took jina and the army three months to fight their way as far as the walls of fewerla and even when they got there , they had to guard their rear against attacks by the irregular forces of the various chiefs whom they had defeated or bypassed along the way .