The cavalry plundered much wealth and merchandise from the non-fortified towns of Kalyan and Bhiwandi, and captured the Mahuli fort which was once under the control of Shahaji. Over the next year (1648), Shivaji consolidated his control in northern Konkan, establishing authority over local chiefs and capturing territories from the Siddis of Janjira. The Siddis had become practically independent after the fall of their former overlords - the kings of Ahmadnagar, although they recognized the nominal suzerainty of Bijapur. From Kalyan, Shivaji moved southwards towards Kolaba: several local Hindu chiefs invited him to their territories. He captured Surgad, Birwadi, Tala, Ghosalegad, Sudhagad, Kangori, and Rairi (Raigad, his future capital). He built new forts at Birwadi and Lingana. Shivaji appointed Abaji Sondev as the viceroy of this newly-conquered territory in northern Konkan. Sometime in 1648, the Siddis inflicted a crushing defeat on Shivaji's forces led by the "Peshwa" Shyamraj Nilkanth Ranjhekar. According to the "Chitnis Bakhar", a displeased Shivaji removed Ranjhekar from his post, and appointed Moropant Trimbak Pingle as the new Peshwa. He also sent a large army led by Raghunath Ballal Korde against the Siddis. In late 1648, the Bijapuri government imprisoned Shivaji's father Shahaji. According to Zahur's "Muhammad-namah" (the official court history of Bijapur) and "Basatin-i-Salatin" (a later history), Shahaji was arrested for insubordination during the siege of Jinji against the Golconda Sultanate. However, "Chitnis Bakhar", a Maratha chronicle written over 150 years after the event, states that Shahaji was arrested because the Bijapuri court suspected him to be involved in the rebellious activities of his son Shivaji. While his father was imprisoned at Bijapur, Bijapuri government sent an army to recapture Purandar from Shivaji, but this force was unable to dislodge Shivaji from the fort. Meanwhile, Shivaji unsuccessfully attempted to forge an alliance with the Mughals against Bijapur.