improved Auth class