small changes to how Ariel's code looks for directories to get it to run