removing problematic directories