fixed auth helper