adding the ability to use an entire directory