setup fixed to remove directories