Fixes to package auth