update addlink.sh script