fix up link/unlink