remap input-output