see https://gist.github.com/phantasm66/ea518efdf745fa8a1518 (logs warning when no sudo allowance) and https://gist.github.com/phantasm66/7f02dd0e62a6fbcce455 (gets correct totals when sudo allowance exists)