fix for AutomaticAuth - now it is working