cleanup directory usage