fixed shell script so that multiple cpus will be used...