porting m-f-i