patch up IP commands