added ability to ignore dirs