script to run in parallel a scan