added a -f flag to instead use the contents of the current directory