fix param issue in script, increase loop repeats for IPC