improve link/unlink.sh