moving sudo logic from yadtshell into minion