added exclude dirs option