added feature to optionally ignore additional directories