move sudo inside script