allow to set npoints in the scan script
wait for sub-processes
allow parallelization