add option to check if dotfiles are installed
extract functions from link_name