add directory
refactor