add loopback medium, tweak spatch files.