sudo where necessary