porting patches