collectFiles takes an options object argument

options argument supposed to be an object here, I think