adds the directory structure for keys used by various functions