general directory cleanup