partial fix to auth