working sudo recursion