preparing directory interface