adding functionality to recurse through directories