Modernize packaging
Improve auth failure hanlding