clean some dir settings