add config for directory
get directory info