fix dotfiles function