sentences:  Nevertheless, Viceroy Abascal was infuriated when he read the text of the Treaty of Lircay.He removed Gaínza from command, replacing him with Mariano Osorio.Not content with that, he had Gaínza court martialed in Lima, accused of exceeding his orders.