now accepts multiple files at once so a whole directory can be processed on one call