adds feature to skip directories