modified ts25mini patch thanks to Nightfarer