fixed up unlinking a bit