added root-check to work around sudo-timeout