add multhreading to script