made improvements to the symlink script