inserted recursion to update more scripts