added exclude functionality of directories