made sure another child process isnt started until the previous one is finished