add directory management