collectFiles takes an options object argument