fix config permissions, add directories (broken)