added sudo where needed