fix parallel processing script