add sudo to the appropriate lines