use sg only if needed and deferr sudo check for itto console, fix #71