add the checking for all the jobs to finish before copying results