fixed problems with auth