first parameter is now the folder to scan