refactor prefs to separate folders
better checking for symlinks