add functions to makesymlinks.sh