add check for sudo